◐ Shell
clean mode source ↗

std::basic_string::back - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

CharT& back();

(desde C++11)

const CharT& back() const;

(desde C++11)

Retorna referência ao último personagem na seqüência.

Original:

Returns reference to the last character in the string.

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

Parâmetros

(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.

Valor de retorno

referência ao último personagem.

Original:

reference to the last character.

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

Complexidade

Constante

Original:

Constant

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

Notas

back requer que !empty() == true, caso contrário, o resultado é indefinido.

Original:

back requires that !empty() == true, otherwise the result is undefined.

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

Veja também

acessa o primeiro caractere

Original:

accesses the first character

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


(função pública membro) [edit]