Espaços nominais
Variantes
Ações

std::char_traits::length

De cppreference.com

<metanoindex/>

 
 
Biblioteca cordas
Strings terminadas
Original:
Null-terminated strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Cadeias de bytes
Multibyte cordas
Cordas de largura
Classes
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
 
<tbody> </tbody>
std::size_t length( const CharT* s );
Retorna o comprimento da sequência de caracteres apontada por s, isto é, a posição do caracter de terminação nula (Char()).
Original:
Returns the length of the character sequence pointed to by s, that is, the position of the terminating null character (Char()).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parâmetros

s -
ponteiro para uma seqüência de caracteres para retornar comprimento
Original:
pointer to a character sequence to return length of
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Valor de retorno

O comprimento da seqüência de caracteres apontada por s.
Original:
The length of character sequence pointed to by s.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Exceções

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

Complexidade

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