This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] std::begin/std::end family global functions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]