Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Valuing Fixed Income Investments
.
const test
sd2
typedef 2
DFS
2
is_sorted_30-Seconds-of-C++
project
volatile thread-safe object
Please log in to post a comment.