##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::make_reverse_iterator

From cppreference.com
< cpp‎ | iterator

Defined in header `<iterator>` |  |
template <class Iterator> std::reverse_iterator<Iterator> make_reverse_iterator( Iterator i ); |  | (since C++14)

`make_reverse_iterator` is a convenience function template that constructs a std::reverse_iterator for the given iterator `i` with the type deduced from the type of the argument.

### [edit] Parameters

i | - | input iterator to be converted to reverse iterator

### [edit] Return value

A std::reverse_iterator constructed from `i`

### [edit] Possible implementation

    template< class Iterator >
    std::reverse_iterator<Iterator> make_reverse_iterator( Iterator i )
    {
        return std::reverse_iterator<Iterator>(i);
    }

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

reverse_iterator | iterator adaptor for reverse-order traversal (class template) [edit]
rbegin crbegin (C++14) | returns a reverse iterator to a container or array (function) [edit]
rend crend (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/iterator/make_reverse_iterator&oldid=67915"
Category:

- Todo no example