名前空間
変種
操作

std::basic_string<CharT,Traits,Allocator>::at

提供: cppreference.com
< cpp‎ | string‎ | basic string
2015年11月30日 (月) 06:40時点におけるP12bot (トーク | 投稿記録)による版

 
 
 
std::basic_string
 
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.

例外

pos >= size()の場合std::out_of_rangeをスローします

計算量

定数

参照

指定された文字にアクセスします
(パブリックメンバ関数) [edit]