std::vector::data
De cppreference.com
|
|
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. |
| T* data(); |
(desde C++11) | |
| const T* data() const; |
(desde C++11) | |
Devuelve un puntero al array subyacente que sirve como almacenamiento de elementos. El puntero es tal que el rango [data(); data() + size()) siempre es un rango válido, incluso si el contenedor está vacío.
Contenido |
[editar] Parámetros
(Ninguno)
[editar] Valor de retorno
Puntero al almacenamiento de elementos subyacente. Para los contenedores que no estén vacíos devuelve &front().
[editar] Complejidad
Constante.
[editar] Excepciones
[editar] Ver también
| accede al primer 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. (función miembro público) | |
| accede al último elemento Original: access the last element The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función miembro público) |

