Diferencia entre revisiones de «cpp/string/basic string/empty»
De cppreference.com
< cpp | string | basic string
(Translated from the English version using Google Translate) |
m (1 revisión: Translate from the English version) |
Revisión de 12:34 25 oct 2012
bool empty() const; |
||
Comprueba si la cadena tiene ningún carácter, es decir, si begin() == end() .
Original:
Checks if the string has no characters, i.e. whether begin() == end().
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.
Contenido |
Parámetros
(Ninguno)
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.
Valor de retorno
true si la cadena está vacía, false lo contrario
Original:
true if the string is empty, false otherwise
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.
Complejidad
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.