std::allocator_arg
提供: cppreference.com
ヘッダ <memory> で定義 | ||
constexprstd::allocator_arg_t allocator_arg =std::allocator_arg_t(); | (C++11以上) (C++17未満) | |
inlineconstexprstd::allocator_arg_t allocator_arg =std::allocator_arg_t(); | (C++17以上) | |
std::allocator_arg
は std::tuple、 std::function、 std::packaged_task(C++17未満)、 std::promise などのアロケータ対応オブジェクトのコンストラクタおよびメンバ関数のオーバーロードの曖昧さを呼び出し元で解消するために使用される std::allocator_arg_t 型の定数です。
[編集]関連項目
(C++11) | アロケータ対応のコンストラクタのオーバーロードを選択するために使用されるタグ型 (クラス) |
(C++11) | 指定された型がアロケータ使用構築をサポートしているかどうか調べます (クラステンプレート) |