Template Struct InRange

Struct Documentation

template<typename Iterator, typename Compare = std::less<typename Iterator::value_type>>
struct InRange

Gets the elements in a specified range from a container.

The container must have random access iterators.

Public Types

using T = typename Iterator::value_type

Type used to order the container.

Public Functions

inline std::pair<Iterator, Iterator> get(Iterator begin, Iterator end, const T &t0, const T &t1) const
Parameters
  • begin – The beginning of the container search.

  • end – The end (one past the last element) of the container search.

  • t0 – The beginning of value of the range.

  • t1 – The end value of the range.

Returns

Pair of iterators representing elements in the range [t0, t1).