function template · 2 overloads
std::ranges::get
- Header
<ranges>- Draft
- [ranges.syn]
- Scope
std::ranges- cppreference
- std::ranges::get
Overloads
- (1)
template<size_t N, class I, class S, subrange_kind K> requires ((N == 0 && copyable<I>) || N == 1) constexpr auto get(const subrange<I, S, K>& r); - (2)
template<size_t N, class I, class S, subrange_kind K> requires (N < 2) constexpr auto get(subrange<I, S, K>&& r);