Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Template
#include <functional> template<class T> T testFunc(T t1, T t2, std::function<int(int, int)> func = [](T v1, T v2){return v1 < v2;}) { return func(t1, t2); } int main() { int a = 5, b = 10; testFunc(a, b); return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Program_2
masodijegy.cpp
7
boost::asyc fail with error C2280: attempting to reference a deleted function
defined(FOO)
const_pointer_cast
Sum of numbers in a series using sum formular
Catching divide-by-zero with /EHc
C++ standard library formatted input hexadecimal float without prefix or exponent test case
Integral constant
Please log in to post a comment.