absl::c_find_first_of

Overload of c_find_first_of() for using a predicate evaluation other than == as the function's test condition.

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename C1,
    typename C2,
    typename BinaryPredicate>
constexpr
/* implementation-defined */
c_find_first_of(
    C1& container,
    C2 const& options,
    BinaryPredicate&& pred);

Return Value

An iterator to the first element of container matching an element of options, or the end iterator if none is found.

Parameters

NameDescription
containerThe container to search.
optionsThe container of values to search for.
predThe binary predicate used to compare elements.