string::rend
Return a reverse iterator to the character following the last character of the reversed container.
Synopsis
string::reverse_iterator
rend() noexcept; (1)
string::const_reverse_iterator
rend() const noexcept; (2)
Description
The pointed-to element corresponds to the element preceding the first element of the non-reversed container. The returned iterator only acts as a sentinel. Dereferencing it results in undefined behavior.
Complexity
Constant.
Exception Safety
No-throw guarantee.