std::basic_string::at
提供: cppreference.com
< cpp | string | basic string
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
reference at( size_type pos ); |
||
const_reference at( size_type pos ) const; |
||
指定された位置pos
の文字への参照を返します。境界チェックが行われ、不正なアクセスに対してstd::out_of_range型の例外がスローされます.
目次 |
[編集] パラメータ
pos | - | 取得する文字の位置 |
[編集] 値を返します
要求した文字への参照
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.
You can help to correct and verify the translation. Click here for instructions.
[編集] 例外
pos >= size()の場合std::out_of_rangeをスローします
[編集] 計算量
定数
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] 参照
指定した文字にアクセスします Original: access specified character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) |