Container‐based version of the <algorithm> std::find_if() function to find the first element in a container matching the given condition.
Synopsis
Declared in <absl/algorithm/container.h>
template<
typename C,
typename Pred>
constexpr
/* implementation-defined */
c_find_if(
C& c,
Pred&& pred);
Return Value
An iterator to the first element satisfying pred, or the end iterator if none is found.
Parameters
Name |
Description |
c |
The container to search. |
pred |
The predicate applied to each element. |
Created with MrDocs