Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Heap DS and Heapsort
SEGMENTED SIEVE
Cyclically rotate an array by one
MCM
Get all anagrams from given words
задача new
Primality test Fermat primality test
pangram
Goooood
Beadandó
Please log in to post a comment.