std::uses_allocator<std::experimental::function>
来自 cppreference.cn
< cpp | experimental | function
定义于头文件 <experimental/functional> |
||
template< class R, class... ArgTypes, class Alloc > struct uses_allocator<std::experimental::function<R(ArgTypes...)>, Alloc> |
(库基础 TS) (在库基础 TS v3 中移除) |
|
此 std::uses_allocator 特化通知其他库组件,所有 std::experimental::function 类型的对象均支持 *使用分配器构造*。
目录 |
继承自 std::integral_constant
成员常量
值 [静态] |
真 (public static 成员常量) |
成员函数
operator bool |
将对象转换为 bool,返回 value (公开成员函数) |
operator() (C++14) |
返回 value (公开成员函数) |
成员类型
类型 | 定义 |
value_type
|
bool |
类型
|
std::integral_constant<bool, value> |
[编辑] 另请参阅
(C++11) |
检查指定类型是否支持 uses-allocator 构造 (类模板) |