Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
template
//g++ 5.4.0 #include <iostream> class AA { public: virtual void fdatasync() { std::cout << " AA " << std::endl;} }; template <bool a, bool b, bool c> class A : public AA { public: explicit A() { std::cout << " construct " << a << " " << b << " " << c << std::endl;} void fdatasync() override { std::cout << " A " << std::endl; } template <typename Func> void Check(Func&& func) { func(); } template <typename Func> void Check2(Func&& func) { func(99); } }; int main() { int b = 100; A<0, 0, 1> a; a.fdatasync(); std::cout << "Hello, world!\n"; a.Check([&] () { std::cout << " Check " << std::endl; }); a.Check2([&] (int b) { std::cout << " Check " << b << std::endl; }); return 0; }
run
|
edit
|
history
|
help
0
ISPrime
WeekAgenda2
Fibonacci
3 and 7 in a row
shell sort
325324
Pollard Rho Brent Integer Factorization - 11476 - Factorizing Larget Integers
algortym A*
Przesylka
PriQHotel