Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
lambda capture
//g++ 5.4.0 #include <iostream> #include <algorithm> #include <vector> int main() { const int controlValue = 5; std::vector<int> vect{ 0, 1, 2, 3 }; const auto result = std::any_of(vect.begin(), vect.end(), [](const int& item) { return item == controlValue; }); }
run
|
edit
|
history
|
help
0
Roger Cheng
fibonacci
queueArray
tasks
float precision test
next permutation leetcode
Sangharsh vhawale
Facebook - Split into monotonic sequences
typedef 2
Discounting Future Stream