std::basic_string<CharT,Traits,Allocator>::rbegin, std::basic_string<CharT,Traits,Allocator>::crbegin
From cppreference.com
Template:cpp/string/basic string/sidebar Template:ddcl list begin <tr class="t-dcl ">
<td class="t-dcl-nopad">iterator rbegin();
</td>
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td class="t-dcl-nopad">const_iterator rbegin() const;
</td>
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td >const_iterator crbegin() const;
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end
Returns a reverse iterator to the first character of the reversed string. It corresponds to the last character of the non-reversed string.
Contents |
Parameters
(none)
Return value
reverse iterator to the first character
Complexity
Constant