Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::count_if is an STL algorithm for counting elements in a container matching a certain predicate. For counting without a predicate use std::count.
#include <algorithm> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.