std::experimental::function<R(Args...)>::operator=

Assigns a new target to std::experimental::function. In the description below, let ALLOCATOR_OF(f) be the allocator specified in the construction of f, or the value of std::experimental::pmr::get_default_resource()(until library fundamentals TS v3)the default-constructed std::pmr::polymorphic_allocator<> value(library fundamentals TS v3) at the time of construction if no allocator was specified.

# Declarations

function& operator=( const function& other );

(library fundamentals TS)

function& operator=( function&& other );

(library fundamentals TS)

function& operator=( std::nullptr_t ) noexcept;

(library fundamentals TS)

template< class F >
function& operator=( F&& f );

(library fundamentals TS)

template< class F >
function& operator=( std::reference_wrapper<F> f );

(library fundamentals TS)

template< class F >
function& operator=( std::reference_wrapper<F> f ) noexcept;

(library fundamentals TS v3)

# Parameters

# Return value

*this

# Notes

The move assignment operator may need to allocate storage if get_memory_resource() != other.get_memory_resource()(until library fundamentals TS v3)get_allocator() != other.get_allocator()(library fundamentals TS v3)