Symphilosophein 狂者進取,狷者有所不為也。
#include <iostream> using namespace std; template<typename U, typename ... T> void run(T... a){ ((cout << a << ' '), ...); } int main(){ // run(1,2,32,4); run<int>(1,3, 42.0, "haha"); }
Note: Only a member of this blog may post a comment.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.