指派给此对象的函数可调用对象。
template<class Fx, class Alloc>
void assign(
Fx _Func,
const Alloc& _Ax
);
template<class Fx, class Alloc>
void assign(
reference_wrapper<Fx> _Fnref,
const Alloc& _Ax
);
参数
_Func
可调用对象。_Fnref
包含可调用对象的引用该包装。_Ax
分配程序对象。
备注
成员函数每个将 operand作为传递的可调用的对象替换 *this 中存储的 callable object。 两个分配的分配程序对象 _Ax的存储空间。
要求
标头: <起作用的>
命名空间: std