Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

function::assign

Assigns a callable object to this function object.

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

A callable object.

_Fnref

A reference wrapper that contains a callable object.

_Ax

An allocator object.

The member functions each replace the callable object held by *this with the callable object passed as the operand. Both allocate storage with the allocator object _Ax.

Header: <functional>

Namespace: std

Show:
© 2014 Microsoft