absl::c_find_end

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

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename Sequence1,
    typename Sequence2,
    typename BinaryPredicate>
constexpr
/* implementation-defined */
c_find_end(
    Sequence1& sequence,
    Sequence2& subsequence,
    BinaryPredicate&& pred);

Return Value

An iterator to the beginning of the last occurrence of subsequence, or the end iterator if none is found.

Parameters

NameDescription
sequenceThe container to search.
subsequenceThe subsequence to search for.
predThe binary predicate used to compare elements.