Difference between revisions of "cpp/string/basic string/back"
From cppreference.com
< cpp | string | basic string
m (Text replace - "{{mark c++11 feature}}" to "{{mark since c++11}}") |
m (Text replace - "/sidebar" to "/navbar") |
||
Line 1: | Line 1: | ||
{{cpp/string/basic_string/title | back}} | {{cpp/string/basic_string/title | back}} | ||
− | {{cpp/string/basic_string/ | + | {{cpp/string/basic_string/navbar}} |
{{ddcl list begin}} | {{ddcl list begin}} | ||
{{ddcl list item | notes={{mark since c++11}} | | {{ddcl list item | notes={{mark since c++11}} | |
Revision as of 14:05, 15 June 2012
Template:ddcl list begin <tr class="t-dcl ">
<td >CharT& back();
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >const CharT& back() const;
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end
Returns reference to the last character in the string.
Contents |
Parameters
(none)
Return value
reference to the last character.
Complexity
Constant