absl::c_equal_range

Container-based version of the <algorithm> std::equal_range() function to return an iterator pair pointing to the first and last elements in a sorted container which compare equal to value.

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename Sequence,
    typename T>
constexpr
/* implementation-defined */
c_equal_range(
    Sequence& sequence,
    T const& value);

Return Value

A pair of iterators bounding the range of elements equal to value.

Parameters

NameDescription
sequenceThe sorted container to search.
valueThe value to compare against.