Namespaces
Variants
Views
Actions

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/sidebar}}
+
{{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

 
 
 
std::basic_string
Member functions
Element access
basic_string::back
(DR*)
Iterators
Capacity
Modifiers
Search
Operations
Constants
Non-member functions
I/O
Comparison
(until C++20)(until C++20)(until C++20)(until C++20)(until C++20)(C++20)
Numeric conversions
(C++11)(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
Literals
Helper classes
Deduction guides (C++17)

 

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

See also

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