Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | string‎ | basic string
Revision as of 14:06, 15 June 2012 by P12bot (Talk | contribs)

 
 
 
std::basic_string
Member functions
Element access
basic_string::front
(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& front();
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

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

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Returns reference to the first character in the string.

Contents

Parameters

(none)

Return value

reference to the first character.

Complexity

Constant

See also

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