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

Name

Description

c

The container to search.

value

The value to count.

Created with MrDocs