Difference between revisions of "cpp/string/basic string/front"
From cppreference.com
< cpp | string | basic string
m (Text replace - "{{complex}}" to "===Complexity===") |
m (Text replace - "{{mark c++0x}}" to "{{mark c++11}}") |
||
Line 2: | Line 2: | ||
{{cpp/string/basic_string/sidebar}} | {{cpp/string/basic_string/sidebar}} | ||
{{ddcl list begin}} | {{ddcl list begin}} | ||
− | {{ddcl list item | notes={{mark c++ | + | {{ddcl list item | notes={{mark c++11}} | |
CharT& front(); | CharT& front(); | ||
}} | }} | ||
− | {{ddcl list item | notes={{mark c++ | + | {{ddcl list item | notes={{mark c++11}} | |
const CharT& front() const; | const CharT& front() const; | ||
}} | }} |
Revision as of 18:08, 2 August 2011
Template:cpp/string/basic string/sidebar Template:ddcl list begin <tr class="t-dcl ">
<td >CharT& front();
</td>
<td class="t-dcl-nopad"> </td> <td > (C++11) </td> </tr> <tr class="t-dcl ">
<td >const CharT& front() const;
</td>
<td class="t-dcl-nopad"> </td> <td > (C++11) </td> </tr> Template:ddcl list end
Returns reference to the first character in the string.
Contents |
Parameters
Return value
reference to the first character.