Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
This page is about two different counts:
std::count is an STL algorithm for counting elements in a container. For conditional counting use std::count_if.
#include <algorithm> |
Count is a function to count elements in a two-dimensional container.
#include <algorithm> |
Prefer algorithms over loops [1][2]
#include <cassert> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.