std::function<R(Args...)>::assign

Initializes the target with f. The alloc is used to allocate memory for any internal data structures that the function might use.

# Declarations

template< class F, class Alloc >
void assign( F&& f, const Alloc& alloc );

(since C++11) (removed in C++17)

# Parameters

# Return value

(none)

# See also