C++11 equivalent to Python's all() function -


is there equivalent function python's all() built-in function?

in other words: c++11 function exist returns true when of elements of iterable meet condition , false otherwise?

check out std::all_of in <algorithm> header. can pass custom predicate evaluates true or false on each element.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -