Count elements of Range for which P is true.
Declared in <llvm/ADT/STLExtras.h>
template<
typename R,
typename UnaryPredicate>
auto
count_if(
R&& Range,
UnaryPredicate P);
The number of elements for which P is true.
| Name | Description |
|---|---|
| Range | Range to search. |
| P | Unary predicate selecting elements to count. |