名前空間
変種
操作

Utility library

提供: cppreference.com
< cpp


 
 
ユーティリティライブラリ
支援を入力します (basic types, RTTI, type traits)
動的なメモリ管理
エラー処理
プログラムユーティリティ
可変個引数関数
日付と時刻
関数オブジェクト
initializer_list(C++11)
bitset
hash(C++11)
関係演算子
Original:
Relational operators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
ペアとタプル
Original:
Pairs and tuples
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
pair
tuple(C++11)
piecewise_construct_t(C++11)
piecewise_construct(C++11)
フォワード、スワップ、および移動
Original:
Swap, forward and move
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
swap
forward(C++11)
move(C++11)
move_if_noexcept(C++11)
declval(C++11)
 
C + +のビットカウントから部分関数適用までの機能を提供するユーティリティライブラリが多数含まれています。これらのライブラリは、大きく二つのグループに分けることができます
Original:
C++ includes a variety of utility libraries that provide functionality ranging from ビットカウント to 部分関数適用. These libraries can be broadly divided into two groups:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • 言語サポート·ライブラリー、および
    Original:
    language support libraries, and
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • 汎用ライブラリ.
    Original:
    general-purpose libraries.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.

目次

[編集] 言語サポート

言語サポートライブラリは、クラスと言語機能とサポート共通言語のイディオムと緊密な連携機能を提供する.
Original:
Language support libraries provide classes and functions that interact closely with language features and support common language idioms.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 支援を入力します

基本的な型(例えばstd::size_tstd::nullptr_t)、RTTI(例えばstd::type_info)、型の特徴(例えばstd::is_integralstd::rank
Original:
Basic types (e.g. std::size_t, std::nullptr_t), RTTI (e.g. std::type_info), type traits (e.g. std::is_integral, std::rank)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 動的なメモリ管理

スマートポインタ(例えばstd::shared_ptr)、アロケータ(例えばstd::allocator)、Cスタイルのメモリ管理(例えばstd::malloc
Original:
Smart pointers (e.g. std::shared_ptr), allocators (e.g. std::allocator), C-style memory management (e.g. std::malloc)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] エラー処理

例外(例えばstd::exceptionstd::logic_error)、アサーション(例えばassert
Original:
Exceptions (e.g. std::exception, std::logic_error), assertions (e.g. assert)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 初期化リスト

初期化子リストの構文の使用が非明瞭な古いデータの型を初期化することができます
Original:
allows the use of 初期化子リストの構文 to initialize non plain-old-data types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(クラステンプレート) [edit]

[編集] 可変個引数関数

任意の数のパラメータ(例えばva_startva_argva_end経由)を取る関数のサポート
Original:
Support for functions that take an arbitrary number of parameters (via e.g. va_start, va_arg, va_end)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


[編集] 汎用ユーティリティ

[編集] プログラムユーティリティ

終端(例えばstd::abortstd::atexit)、環境(例えばstd::system)、信号(例えばstd::raise
Original:
Termination (e.g. std::abort, std::atexit), environment (e.g. std::system), signals (e.g. std::raise)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 日付と時刻

タイムトラッキング(例えばstd::chrono::time_pointstd::chrono::duration)、Cスタイルの日付と時刻(例えばstd::timestd::clock
Original:
Time tracking (e.g. std::chrono::time_point, std::chrono::duration), C-style date and time (e.g. std::time, std::clock)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] bitsetの

一定の長さのビット配列を実装します
Original:
implements constant length bit array
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(クラス) [edit]

[編集] 関数オブジェクト

パーシャル機能·アプリケーション(例えばstd::bind)、一般的な機能(例えばstd::function)、事前定義されたファンクタ(例えばstd::plusstd::equal_to
Original:
Partial function application (e.g. std::bind), generic functions (e.g. std::function), predefined functors (e.g. std::plus, std::equal_to)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] ペアとタプル

すなわち値のペア、バイナリのタプルを実装しています
Original:
implements binary tuple, i.e. a pair of values
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(クラステンプレート) [edit]
(C++11)
ことによると異なった型の要素を保持する固定サイズのコンテナを実装します
Original:
implements fixed size container, which holds elements of possibly different types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(クラステンプレート) [edit]
タグの種類は、区分建設のための正しい関数のオーバーロードを選択するために使用
Original:
tag type used to select correct function overload for piecewise construction
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(クラス) [edit]
型のオブジェクトpiecewise_construct_tは、区分的に構築するための機能を明確にするために使用
Original:
an object of type piecewise_construct_t used to disambiguate functions for piecewise construction
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(定数) [edit]

[編集] フォワード、スワップ、および移動

スワップ2つのオブジェクトの値
Original:
swaps the values of two objects
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
(C++11)
転送関数の引数
Original:
forwards a function argument
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
(C++11)
右辺値参照を取得します
Original:
obtains an rvalue reference
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
ムーブコンストラクタがスローされない場合、右辺値参照を取得します
Original:
obtains an rvalue reference if the move constructor does not throw
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
(C++11)
未評価のコンテキストで、式の型を取得します
Original:
obtains the type of expression in unevaluated context
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]

[編集] 関係演算子

Defined in namespace std::rel_ops
automatically generates comparison operators based on user-defined operator== and operator<
(関数テンプレート) [edit]

[編集] ハッシュをサポート

(C++11)
hash function object
(クラステンプレート) [edit]