Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Variadic Functor Example
#include<iostream> template<class ...Functor> struct SeqMethod : public Functor... { public: void operator()(){ int _[] = { (Functor::operator()(), 0)... }; return void(_); } }; class A { public: void operator()() { std::cout << "A"; } }; class B { public: void operator()() { std::cout << "B"; } }; class C : public SeqMethod<A, B>{}; int main() { C c; c(); }
run
|
edit
|
history
|
help
0
Text Justification
char
-Wall -std=c++14 -O0 -o a.out source_file.cpp
sample1
Compatibilità
Dar
Raw AVL
shell sort
Simple use of function templete and namespace
cppPyClassInit