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

Listboxes in c# -

Excel Duty List -

Multilayer CSV to filtered excel -