◐ Shell
clean mode source ↗

std::basic_string::back – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

CharT& back();

(seit C++11)

const CharT& back() const;

(seit C++11)

Gibt Bezugnahme auf die letzten Zeichen in der Zeichenfolge .

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.

Parameter

(None)

Original:

(none)

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

Rückgabewert

Verweis auf das letzte Zeichen .

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.

Komplexität

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.

Notes

back erfordert, dass !empty() == true, ansonsten ist das Ergebnis undefined .

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.

Siehe auch

greift auf das erste Zeichen

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.


(öffentliche Elementfunktion) [edit]