Share via


Struktur uses_allocator

Spesialisasi yang selalu benar.

Sintaks

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;

Persyaratan

Header:<future>

Namespace: std

Spesialisasi

<tuple>

template <class... Types, class Alloc>
struct uses_allocator<tuple<Types...>, Alloc>;

Baca juga

Referensi File Header
<Masa depan>