[patch] std::begin/std::end family global functions
Daniel Krügler
daniel.kruegler@gmail.com
Mon Jun 3 13:01:00 GMT 2013
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
More information about the Libstdc++
mailing list