Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
variadic pointer to function template
//g++ 5.4.0 #include <iostream> template<typename T> void func(T t) { std::cout << t << "\n"; } template<typename T, typename S> void func2(T t, S s) { std::cout << t << " and " << s << "\n"; } template<typename ...Types> using p = void(*)(Types...); int main() { p<int> r = func; r(1); p<double, int> r1 = func2; r1(2.2, 5); return 0; }
run
|
edit
|
history
|
help
0
javascript style arrays in c++
scanf error
Mr
Tower of hanoi
maximum_frequent_sum
Stack
Addition of two matrix **Part 2
HeatPump COP
Finding the first digit of a number
CAE C++ Day 3 tests