SysTutorials

Linux Manual Pages › Section 3

stdrangesiterator_tstdrangessentinel_t(3)

std::ranges::iterator_t,std::ranges::sentinel_t - std::ranges::iterator_t,std::ranges::sentinel_t

Synopsis

Defined in header <ranges>
template <class T>                                         (1) (since C++20)
using iterator_t = decltype(ranges::begin(declval<T&>()));
template <class T>                                         (2) (since C++20)
using sentinel_t = decltype(ranges::end(declval<T&>()));
  1. Used to obtain the iterator type of the type T.
  2. Used to obtain the sentinel type of the type T.