Namespaces
Variants
Views
Actions

std::basic_string<CharT,Traits,Allocator>::rend, std::basic_string<CharT,Traits,Allocator>::crend

From cppreference.com
< cpp‎ | string‎ | basic string
Revision as of 17:49, 2 August 2011 by P12bot (Talk | contribs)

Template:cpp/string/basic string/sidebar Template:ddcl list begin <tr class="t-dcl ">

<td class="t-dcl-nopad">
iterator rend();
</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 rend() const;
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td >
const_iterator crend() const;
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++11 feature </td> </tr> Template:ddcl list end

Returns a reverse iterator to the character following the last character of the reversed string. It corresponds to the character preceding the first character of the non-reversed string. This character acts as a placeholder, attempting to access it results in undefined behavior.

Parameters

Template:param none

Return value

reverse iterator to the character following the last character

Complexity

Template:complex constant

Template:see also

Template:cpp/string/basic string/dcl list rbegin