absl::c_find

Container-based version of the <algorithm> std::find() function to find the first element containing the passed value within a container value.

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename C,
    typename T>
constexpr
/* implementation-defined */
c_find(
    C& c,
    T&& value);

Return Value

An iterator to the first matching element, or the end iterator if none is found.

Parameters

NameDescription
cThe container to search.
valueThe value to search for.