std::basic_string<CharT,Traits,Allocator>::at
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
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をスローします
計算量
定数
参照
指定された文字にアクセスします (パブリックメンバ関数) |