Namespaces
Variants
Views
Actions

std::basic_string<CharT,Traits,Allocator>::back

From cppreference.com
< cpp‎ | string‎ | basic string
Revision as of 10:22, 10 October 2011 by P12bot (Talk | contribs)

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

<td >
CharT& back();
</td>

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

<td >
const CharT& back() const;
</td>

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

Returns reference to the last character in the string.

Contents

Parameters

Template:param none

Return value

reference to the last character.

Complexity

Constant

See also

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