Defined in header <iterator> | ||
---|---|---|
template <class E> std::reverse_iterator<const E*> rbegin( std::initializer_list<E> il ); | (since C++14) |
The overload of std::rbegin
for initializer_list
returns an std::reverse_iterator
pointing at the last element of il
.
il | - | an initializer_list |
std::reverse_iterator<const E*>(il.end())
.
(none).
This overload is necessary because std::initializer_list
does not have a member function rbegin
. No overload is needed for std::crbegin
because it is implemented in terms of std::rbegin
.
(C++14) | returns a reverse iterator to a container or array (function) |
(C++14) | returns a reverse end iterator for a container or array (function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/utility/initializer_list/rbegin2