[#absl-c_count_if] = xref:absl.adoc[absl]::c_count_if :relfileprefix: ../ :mrdocs: Container‐based version of the <algorithm> `std::count_if()` function to count values matching a condition within a container. == Synopsis Declared in `<absl/algorithm/container.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C, typename Pred> constexpr /* implementation-defined */ c_count_if( C const& c, Pred&& pred); ---- == Return Value The number of elements in `c` satisfying `pred`. == Parameters [cols="1,4"] |=== | Name| Description | *c* | The container to search. | *pred* | The predicate applied to each element. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#