std::reverse_iterator<Iter>::base (3) - Linux Manuals
std::reverse_iterator<Iter>::base: std::reverse_iterator<Iter>::base
NAME
std::reverse_iterator<Iter>::base - std::reverse_iterator<Iter>::base
Synopsis
iterator_type base() const; (until C++17)
constexpr iterator_type base() const; (since C++17)
Returns the underlying base iterator. That is std::reverse_iterator(it).base() == it.
The base iterator refers to the element that is next (from the std::reverse_iterator::iterator_type perspective) to the element the reverse_iterator is currently pointing to. That is &*(rit.base() - 1) == &*rit.
Parameters
(none)
Return value
The underlying iterator.
Exceptions
(none)
Example
// Run this code
Output:
See also
operator* (public member function)
operator->