類模板
<future>

std::uses_allocator<promise>

template <class T, class Alloc>  struct uses_allocator<promise<T>,Alloc>;
Promise 的 allocator 使用者
uses_allocator 的 trait 特化版本告知 promise 物件可以使用 allocator 來構造,即使該類本身沒有 allocator_type 成員。它在 <future> 中定義,行為與

1
2
template <class T, class Alloc>
  struct uses_allocator<promise<T>,Alloc> : true_type {};

另見