◐ Shell
clean mode source ↗

std::basic_string::front – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

CharT& front();

(seit C++11)

const CharT& front() const;

(seit C++11)

Gibt Bezugnahme auf das erste Zeichen in der Zeichenfolge .

Original:

Returns reference to the first 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

Verweisen auf das erste Zeichen .

Original:

reference to 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.

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

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

Original:

front 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 das letzte Zeichen

Original:

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


(öffentliche Elementfunktion) [edit]