struct value_type : ranges::view_interface<value_type> | (since C++20) |
The value type of the iterator ranges::lazy_split_view<V, Pattern>::/*outer_iterator*/<Const>.
Typical implementations of value_type hold only one non-static data member: an iterator of type outer_iterator (shown here as i_ for exposition only) into underlying view of the outer class.
| (constructor)
(C++20) | constructs a value_type object (public member function) |
| begin
(C++20) | returns an inner_iterator to the beginning of the inner range (public member function) |
| end
(C++20) | returns a std::default_sentinel (public member function) |
Inherited from |
|
|
(C++20) | returns whether the derived view is empty. Provided if it satisfies sized_range or forward_range. (public member function of std::ranges::view_interface<D>) |
|
(C++23) | returns a constant iterator to the beginning of the range. (public member function of std::ranges::view_interface<D>) |
|
(C++23) | returns a sentinel for the constant iterator of the range. (public member function of std::ranges::view_interface<D>) |
|
(C++20) | returns whether the derived view is not empty. Provided if ranges::empty is applicable to it. (public member function of std::ranges::view_interface<D>) |
|
(C++20) | returns the first element in the derived view. Provided if it satisfies forward_range. (public member function of std::ranges::view_interface<D>) |
value_type() = default; | (1) | (since C++20) |
constexpr explicit value_type(/*outer_iterator*/ i); | (2) | (since C++20) |
i_ via its default member initializer (= /*outer_iterator*/()).i_ with std::move(i). constexpr /*inner_iterator*/<Const> begin() const; | (since C++20) |
Equivalent to return /*inner_iterator*/<Const>{i_};.
constexpr std::default_sentinel_t end() const noexcept; | (since C++20) |
Returns std::default_sentinel.
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 3593 | C++20 | end always returns std::default_sentinel but might not be noexcept | made noexcept |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/lazy_split_view/value_type