std::basic_string<CharT,Traits,Allocator>::front
From cppreference.com
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