(C++) std::all_of std::all_of is an STL algorithm since the C++11 standard to check if all elements in a container satisfy a certain predicate. Examples std::all_of example 1: basics