string::rbegin

Return a reverse iterator to the first character of the reversed container.

Synopsis

string::reverse_iterator
rbegin() noexcept; (1)

string::const_reverse_iterator
rbegin() const noexcept; (2)

Description

Returns the pointed-to character that corresponds to the last character of the non-reversed container. If the container is empty, rend() is returned.

Complexity

Constant.

Exception Safety

No-throw guarantee.