public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-9129] libstdc++: Define split_view::_InnerIter::base as per P2210
@ 2021-10-12 18:09 Patrick Palka
  0 siblings, 0 replies; only message in thread
From: Patrick Palka @ 2021-10-12 18:09 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:565602a23ac68559086a1bc43e1eb49ae3e96c8d

commit r11-9129-g565602a23ac68559086a1bc43e1eb49ae3e96c8d
Author: Patrick Palka <ppalka@redhat.com>
Date:   Sun Jun 20 12:38:35 2021 -0400

    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 85a594f7dc8ea5c765e136f162debb668139ebd4)

Diff:
---
 libstdc++-v3/include/std/ranges | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libstdc++-v3/include/std/ranges b/libstdc++-v3/include/std/ranges
index 1f43cad1d73..c507862660b 100644
--- a/libstdc++-v3/include/std/ranges
+++ b/libstdc++-v3/include/std/ranges
@@ -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(); }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-12 18:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-12 18:09 [gcc r11-9129] libstdc++: Define split_view::_InnerIter::base as per P2210 Patrick Palka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).