std::uses_allocator<std::experimental::packaged_task>
来自 cppreference.cn
< cpp | experimental | lib extensions | packaged task
在头文件 <experimental/future> 中定义 |
||
template< class R, class Alloc > struct uses_allocator<std::experimental::packaged_task<R>, Alloc> |
(library fundamentals TS) | |
此 std::uses_allocator 的特化告知其他库组件,std::experimental::packaged_task 类型的所有对象都支持uses-allocator 构造。
目录 |
继承自 std::integral_constant
成员常量
value [静态] |
true (公共静态成员常量) |
成员函数
operator bool |
将对象转换为 bool,返回 value (公共成员函数) |
operator() (C++14) |
返回 value (公共成员函数) |
成员类型
类型 | 定义 |
value_type
|
bool |
type
|
std::integral_constant<bool, value> |
[编辑] 参见
(C++11) |
检查指定的类型是否支持 uses-allocator 构造 (类模板) |