std::uses_allocator<std::function>
STD::用途[医]分配器<std::function>
Defined in header | | |
---|
template< class R, class... ArgTypes, class Alloc > struct uses_allocator<std::function<R(ArgTypes...)>, Alloc> : std::true_type { }; | | (since C++11) (until C++17) |
这种专业化std::uses_allocator
通知其他库组件所有类型的对象std::function
支撑用途分配器构造
,即使它们没有嵌套的allocator_type
...
继承自STD:积分[医]常量
成员常数
value static | true (public static member constant) |
---|
成员函数
operator bool | converts the object to bool, returns value (public member function) |
---|
operator() (C++14) | returns value (public member function) |
成员类型
Type | Definition |
---|
value_type | bool |
type | std::integral_constant<bool, value> |
另见
uses_allocator (C++11) | checks if the specified type supports uses-allocator construction (class template) |
---|
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
http://en.cppreference.com/w/cpp/实用程序/功能性/功能/用途[医]分配器