absl::c_count

Container-based version of the <algorithm> std::count() function to count values that match within a container.

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename C,
    typename T>
constexpr
/* implementation-defined */
c_count(
    C const& c,
    T&& value);

Return Value

The number of elements in c equal to value.

Parameters

NameDescription
cThe container to search.
valueThe value to count.