類模板
<future>

std::uses_allocator<packaged_task>

template <class Ret, class Alloc>  struct uses_allocator<packaged_task<Ret>,Alloc>;
為 packaged_task 使用分配器
uses_allocator 的 trait 特化版本表明 packaged_task 物件可以使用分配器進行構造,儘管該類本身沒有任何 allocator_type 成員。它在 <future> 中定義,其行為與

1
2
template <class Ret, class Alloc>
  struct uses_allocator<packaged_task<Ret>,Alloc> : true_type {};

另見