std::basic_string::at – cppreference.com
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>
|
|
||
|
|
||
Gibt einen Verweis auf den Charakter an der angegebenen Stelle pos. Überprüfung von Grenzen durchgeführt wird, wird Ausnahme des Typs std::out_of_range ungültig am Zugang geworfen werden .
Original:
Returns a reference to the character at specified location pos. Bounds checking is performed, exception of type std::out_of_range will be thrown on invalid access.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Parameter
| pos | - | Position des Charakters, um zurückzukehren Original: position of the character to return The text has been machine-translated via Google Translate. |
Rückgabewert
Verweis auf die angeforderten Charakter
Original:
reference to the requested character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Ausnahmen
wirft std::out_of_range wenn pos >= size()
Original:
throws std::out_of_range if pos >= size()
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.
Siehe auch
Zugriff auf angegebene Zeichen Original: access specified character The text has been machine-translated via Google Translate. (öffentliche Elementfunktion) [edit] | |