uses_allocator 結構

永遠成立的特製化。

語法

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>