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

请参见

参考

<future>

其他资源

C++ 标准库头文件