std::basic_string::at
Da cppreference.com.
< cpp | string | basic string
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
reference at( size_type pos ); | ||
const_reference at( size_type pos )const; | ||
Restituisce un riferimento al personaggio di
pos
posizione specificata. Limiti di controllo viene effettuata, ad eccezione di std::out_of_range tipo saranno gettati in materia di accesso non valido.Original:
Returns a reference to the character at specified location
pos
. Bounds checking is performed, exception of type std::out_of_range will be thrown on invalid access.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.
Indice |
[modifica]Parametri
pos | - | posizione del carattere da restituire Original: position of the character to return The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifica]Valore di ritorno
riferimento al carattere richiesto
Original:
reference to the requested 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.
[modifica]Eccezioni
lancia std::out_of_range se pos >= size()
Original:
throws std::out_of_range if pos >= size()
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.
[modifica]Complessità
Constant
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.
[modifica]Vedi anche
accede al carattere richiesto (metodo pubblico) |