次の方法で共有


uses_allocator Structure

 

The latest version of this topic can be found at uses_allocator Structure.

Specializations that always hold true.

Syntax

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;

Requirements

Header: future

Namespace: std

See Also

Header Files Reference
<future>