std::rbegin(std::initializer_list) - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::rbegin(std::initializer_list)

From cppreference.com
< cpp‎ | utility‎ | initializer list

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`.

### [edit] Parameters

il | - | an `initializer_list`

### [edit] Return value

std::reverse_iterator<const E*>(il.end()).

### [edit] Exceptions

(none)

### [edit] Notes

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.

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

rbegincrbegin (C++14) | returns a reverse iterator to a container or array (function) [edit]
rendcrend (C++14) | returns a reverse end iterator for a container or array (function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/utility/initializer_list/rbegin2&oldid=65346"
Category:

- Todo no example