counts items in a collection
None
Returns the number of items in the specified collection that fullfill the specified criterion.
If no test-function is given the collection must contain boolean values.
If an argument is given the test-function is called with the collection item as the first argument and the argument as the second argument.
std::any_of | tests all items of a collection |
std::all_of | tests all items of a collection |