Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Template arguments pack
//g++ 5.4.0 #include <cstdio> #include <string> using namespace std; template <typename ...Argv> using Func = void (*)(Argv...); template <typename ...Argv> void Invoke(Func<Argv...> f, Argv... argvs){ f(argvs...); } void test(const char* str, int n){ printf("%s : %d\n",str,n); } int main() { Invoke(test,"Test",1); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
div
NWD
Networked path_dp
პირამიდის ფართობი~ფინალური
LIS
base and derr con
BindWithContainer
ListCPP
list_of pair strings
Age
Please log in to post a comment.