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

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

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/ranges/iterator_t