std::uses_allocator<std::packaged_task>
来自 cppreference.cn
< cpp | thread | packaged_task
template< class R, class Alloc > struct uses_allocator<std::packaged_task<R>, Alloc> : true_type {}; |
(C++11 起) (在 C++17 中已移除) |
|
为 std::packaged_task 提供 std::uses_allocator 类型特性特化。
目录 |
继承自 std::integral_constant
成员常量
value [静态] |
true (public static 成员常量) |
成员函数
operator bool |
将对象转换为 bool,返回 value (公开成员函数) |
operator() (C++14) |
返回 value (公开成员函数) |
成员类型
类型 | 定义 |
value_type
|
bool |
类型
|
std::integral_constant<bool, value> |
[编辑] 参阅
(C++11) |
检查指定类型是否支持 uses-allocator 构造 (类模板) |