◐ Shell
clean mode source ↗

std::deque<T,Allocator>::at - cppreference.com

提供: cppreference.com

<tbody> </tbody>

reference at( size_type pos );

const_reference at( size_type pos ) const;

境界チェック付きで、指定された位置 pos の要素への参照を返します。

pos がコンテナの範囲内でなければ std::out_of_range 型の例外が投げられます。

引数

戻り値

要求された要素への参照。

例外

!(pos < size()) の場合 std::out_of_range

計算量

一定。

関連項目