std::experimental::ranges::iterator_t, std::experimental::ranges::sentinel_t
来自 cppreference.com
< cpp | experimental | ranges
定义在头文件 <experimental/ranges/range> 中 |
||
template< class T > using iterator_t = decltype(ranges::begin(std::declval<T&>())); |
(1) | (范围 TS) |
template< class T > using sentinel_t = decltype(ranges::end(std::declval<T&>())); |
(2) | (范围 TS) |
获取范围 T
的迭代器和哨兵类型。