count_if « STL Algorithms Non modifying sequence operations « C++ Tutorial






25.5.count_if
25.5.1.Use std::count_if to count number of elements in vector that are greater than 9
25.5.2.count_if(): A unary predicate that determines if number is divisible by 3