Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 2.72 KB

utility.md

File metadata and controls

47 lines (30 loc) · 2.72 KB

#utility <utility>ヘッダでは、その他のライブラリの至る所で使用される、幾つかの基本的な関数やクラステンプレートを定義する。

##演算子定義

名前 説明
rel_ops 関係演算子(namespace)

##値の入れ替え

名前 説明
swap 二つのオブジェクトの値を交換する(function template)

##転送と移動

名前 説明
forward 関数テンプレートの引数を転送する(function template)
move 左辺値を右辺値にキャストする(function template)
move_if_noexcept 例外を投げないオブジェクトをムーブする(function template)

##型の値

名前 説明
declval 指定された型の値を得る(function template)

##組

名前 説明
pair 異なる型の二つの値の組(class template)
tuple_size pairの要素数を取得する(class template)
tuple_element pairi番目の要素型を取得する(class template)
get pairi番目の要素を参照する(function template)
piecewise_construct_t pairの要素型のコンストラクタ引数を直接受け取って構築するためのタグ型(class)
piecewise_construct pairの要素型のコンストラクタ引数を直接受け取って構築するためのタグ値(constant variable)
tuple tuple型の先行宣言(class template)