std::basic_string::front
De cppreference.com
< cpp | string | basic string
Version du 2 juillet 2013 à 05:46 par P12bot (discuter | contributions)
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
CharT& front(); |
(depuis C++11) | |
const CharT& front() const; |
(depuis C++11) | |
Retourne référence au premier caractère de la chaîne .
Original:
Returns reference to the first character in the string.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Sommaire |
Paramètres
(Aucun)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Retourne la valeur
référence au premier caractère .
Original:
reference to the first character.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Complexité
Constante
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Notes
front
exige que !empty() == true, sinon le résultat est indéfini .Original:
front
requires that !empty() == true, otherwise the result is undefined.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Voir aussi
(C++11) |
accède au dernier caractère (fonction membre publique) |