public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Patrick Palka <ppalka@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r11-9129] libstdc++: Define split_view::_InnerIter::base as per P2210 Date: Tue, 12 Oct 2021 18:09:16 +0000 (GMT) [thread overview] Message-ID: <20211012180916.911853858414@sourceware.org> (raw) 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(); }
reply other threads:[~2021-10-12 18:09 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211012180916.911853858414@sourceware.org \ --to=ppalka@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).