在线文档教程
C++
线程支持 | Thread support

std::uses_allocator<std::packaged_task>

STD::用途[医]分配器<std::打包[医]任务>

template< class R, class Alloc > struct uses_allocator, Alloc> : true_type { };(since C++11) (until C++17)

提供std::uses_allocator类型性状std::packaged_task...

继承自STD:积分[医]常量

成员常数

value statictrue (public static member constant)

成员函数

operator boolconverts the object to bool, returns value (public member function)
operator() (C++14)returns value (public member function)

成员类型

TypeDefinition
value_typebool
typestd::integral_constant<bool, value>

另见

uses_allocator (C++11)checks if the specified type supports uses-allocator construction (class template)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cpPreference.com/w/cpp/线程/Package[医]任务/用途[医]分配器