Run Code
|
API
|
Code Wall
|
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
ordinary queue
Hangman
Ctor takes non-const reference but pass in a const array
find vs at
lab1
Code
calling conventions and using an override class to change another classes values
error_check
progrm_1
Hangman