Varianti

std::{{{1}}}::data

Da cppreference.com.

<metanoindex/>

<tbody> </tbody>
T* data();
(dal C++11)
const T* data() const;
(dal C++11)
Restituisce il puntatore alla matrice sottostante che funge da elemento di memoria. Il puntatore è tale che [data(); data() + size()) intervallo è sempre un intervallo valido, anche se il contenitore è vuoto.
Original:
Returns pointer to the underlying array serving as element storage. The pointer is such that range [data(); data() + size()) is always a valid range, even if the container is empty.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parametri

(Nessuno)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Valore di ritorno

Puntatore alla memoria dell'elemento sottostante. Per i non-contenitori vuoti, &front() ritorna
Original:
Pointer to the underlying element storage. For non-empty containers, returns &front()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Complessità

Costante.
Original:
Constant.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Eccezioni

noexcept specification:  
<tbody> </tbody>
noexcept
  (dal C++11)

Vedi anche

accedere al primo elemento
Original:
access the first element
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(metodo pubblico) [modifica]
access the last element
(metodo pubblico) [modifica]