Namespaces
Variants
Views
Actions

std::reverse_iterator::reverse_iterator

From cppreference.com
reverse_iterator();
(1)
explicit           reverse_iterator(Iterator x);
(2)
template <class U> reverse_iterator(const reverse_iterator<U>& u);
(3)

Constructs a new iterator

1) Default constructor. current is value-initialized. This makes only sense if operations on an value-initialized Iterator make also sense.

2) current is initialized with x .

3) Copy constructor. current is initialized with u.current .

[edit] Parameters

x - Iterator to be reversed
u - reverse_iterator to be copied

[edit] Example

[edit] See also

replaces a reverse_iterator
(public member function)