◐ Shell
clean mode source ↗

std::uses_allocator<std::experimental::function> - cppreference.com

来自cppreference.com

template< class R, class... ArgTypes, class Alloc >
struct uses_allocator<std::experimental::function<R(ArgTypes...)>, Alloc> 
    : std::true_type {};
(库基础 TS)
(库基础 TS v3 中移除)

std::uses_allocator 的此特化告知其他库组件:std::experimental::function 类型的所有对象支持使用分配器构造

继承自 std::integral_constant

成员常量

true
(公开静态成员常量)

成员函数

将对象转换到 bool,返回 value
(公开成员函数)
返回 value
(公开成员函数)

成员类型

类型 定义
value_type bool
type std::integral_constant<bool, value>

参阅