constructor · 4 overloads
std::ranges::single_view::single_view
- Header
<ranges>- Draft
- [range.single.view]
- Scope
std::ranges::single_view- cppreference
- std::ranges::single_view nearest page
Constructors
Overloads
- (1)
single_view() = default requires default_initializable<T>; - (2)
explicit constexpr single_view( const T& t) noexcept(is_nothrow_copy_constructible_v<T>) requires copy_constructible<T>; - (3)
explicit constexpr single_view(T&& t) noexcept(is_nothrow_move_constructible_v<T>); - (4)
template<class... Args> requires constructible_from<T, Args...> explicit constexpr single_view( in_place_t, Args&&... args) noexcept(is_nothrow_constructible_v<T, Args...>);