std::vector::at - cppreference.com
Da cppreference.com.
|
|
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. |
<metanoindex/>
<tbody> </tbody>
|
|
||
|
|
||
Restituisce un riferimento per l'elemento in 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 element 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.
Parametri
| pos | - | posizione dell'elemento di ritornare Original: position of the element to return The text has been machine-translated via Google Translate. |
Valore di ritorno
riferimento per l'elemento richiesto
Original:
reference to the requested element
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Eccezioni
std::out_of_range if !(pos < size()).
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.
Vedi anche
accedere elemento specificato Original: access specified element The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |