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
总是应用的专用化。
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