Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
initializer_list example
//g++ 5.4.0 #include <cstddef> #include <initializer_list> #include <vector> void foo1(std::vector<int>) {} void foo2(const std::vector<int> &) {} void foo3(std::initializer_list<int>) {} template <class T> void foo4(std::initializer_list<T>) {} template <size_t N> void foo5(const int (&)[N]) {} template <class T, size_t N> void foo6(const T (&)[N]) {} void foo(std::vector<int> &) {} template <class T> void foo(std::vector<T>) {} template <class T> void foo(T) {} int main() { foo1({1,2,3}); foo2({1,2,3}); foo3({1,2,3}); foo4({1,2,3}); foo5({1,2,3}); foo6({1,2,3}); //foo({1,2,3}); return 0; }
run
|
edit
|
history
|
help
0
Function to m_function
DailyGroceryHisto
List add v2
Translating binary to decimal numbers
СПКИ АП КЭП 2
poker.hpp
TempQuickDoubly
Point on a ray--2133
RandomMessage
Hacher Cup