public member function
<string>
std::string::crbegin
const_reverse_iterator crbegin() const noexcept;
Return const_reverse_iterator to reverse beginning
Parameters
noneReturn Value
A const_reverse_iterator to the reverse beginning of the string.Member type
const_reverse_iterator is a reverse random access iterator type that points to a const character.Example
|
|
Output:
Complexity
Unspecified, but generally constant.Iterator validity
No changes.Data races
The object is accessed.Exception safety
No-throw guarantee: this member function never throws exceptions.The copy construction or assignment of the returned iterator is also guaranteed to never throw.
See also
- string::begin
- Return iterator to beginning (public member function)
- string::crend
- Return const_reverse_iterator to reverse end (public member function)
- string::rbegin
- Return reverse iterator to reverse beginning (public member function)