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
Quiz 12/13
Game
Lazy String Tokenizer Class
D. Traveling Graph
BinTree
better o/p of factor problem
Microsoft - # of fragments (semi-optimised)
threadpool01
For Hello World
C++