std::reverse_iterator<Iter>::operator*,-> (3) - Linux Manuals

std::reverse_iterator<Iter>::operator*,->: std::reverse_iterator<Iter>::operator*,->

NAME

std::reverse_iterator<Iter>::operator*,-> - std::reverse_iterator<Iter>::operator*,->

Synopsis


reference operator*() const; (until C++17)
constexpr reference operator*() const; (1) (since C++17)
pointer operator->() const; (2) (until C++17)
constexpr pointer operator->() const; (since C++17)


Returns a reference or pointer to the element previous to current.
1) Equivalent to Iter tmp = current; return *--tmp;
2) Equivalent to std::addressof(operator*()).

Parameters


(none)

Return value


Reference or pointer to the element previous to current.

Example


 This section is incomplete
 Reason: no example

See also


           accesses an element by index
operator[] (public member function)