This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] std::begin/std::end family global functions
- From: Daniel Krügler <daniel dot kruegler at gmail dot com>
- To: Morwenn Edrahir <morwenn29 at hotmail dot fr>
- Cc: "Libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 3 Jun 2013 15:01:06 +0200
- Subject: Re: [patch] std::begin/std::end family global functions
- References: <DUB105-W10A33F48E6C3B7814C2FE3D39D0 at phx dot gbl>
2013/6/3 Morwenn Edrahir <morwenn29@hotmail.fr>:
> I wrote a patch to complete the std::begin/std::end family global functions into the header bits/range_access.h.
> I hope the patch file is usable - it's my first time making one -. Sorry otherwise :)
The rbegin/rend overloads for array contradict with those accepted by
http://cplusplus.github.io/LWG/lwg-defects.html#2128
which return std::reverse_iterator<T*>:
template <class T, size_t N> reverse_iterator<T*> rbegin(T (&array)[N]);
template <class T, size_t N> reverse_iterator<T*> rend(T (&array)[N]);
- Daniel