次の方法で共有


uses_allocator 構造体

常に true を保持する特殊化です。

構文

template <class Ty, class Alloc>
struct uses_allocator<promise<Ty>, Alloc> : true_type;
template <class Ty, class Alloc>
struct uses_allocator<packaged_task<Ty>, Alloc> : true_type;

必要条件

ヘッダー:<future>

名前空間: std

特殊化

<tuple>

template <class... Types, class Alloc>
struct uses_allocator<tuple<Types...>, Alloc>;

関連項目

ヘッダー ファイル リファレンス
<future>