libstdc++: Define split_view::_InnerIter::base as per P2210

libstdc++-v3/ChangeLog:

	* include/std/ranges (split_view::_InnerIter::base): Define as
	per P2210.

(cherry picked from commit 85a594f7dc)
This commit is contained in:
Patrick Palka 2021-06-20 12:38:35 -04:00
parent f6c5489475
commit 565602a23a

View File

@ -3021,6 +3021,14 @@ namespace views::__adaptor
: _M_i(std::move(__i))
{ }
constexpr iterator_t<_Base>
base() const& requires copyable<iterator_t<_Base>>
{ return _M_i_current(); }
constexpr iterator_t<_Base>
base() &&
{ return std::move(_M_i_current()); }
constexpr decltype(auto)
operator*() const
{ return *_M_i_current(); }