Namespaces
Variants
Views
Actions

std::reverse_iterator::reverse_iterator

From cppreference.com
< cpp‎ | iterator‎ | reverse iterator
Revision as of 19:43, 31 May 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
reverse_iterator();
(1)
explicit reverse_iterator( Iterator x );
(2)
template< class U >
reverse_iterator( const reverse_iterator<U>& other );
(3)

Constructs a new iterator adaptor.

1) Default constructor. current is value-initialized. This makes sense only if operations on an value-initialized Iterator make also sense.
2) current is initialized with x.
3) Copy constructor. The underlying iterator is initialized with that of other.

[edit] Parameters

x - iterator to adapt
other - iterator adaptor to copy

[edit] Example

[edit] See also

assigns another iterator
(public member function) [edit]