std::function::swap

From Cppreference

Jump to: navigation, search
void swap( function& other );
(since C++11)

Exchanges the stored callable objects of *this and other.

[edit] Parameters

other - function wrapper to exchange the stored callable object with

[edit] Return value

(none)

[edit] Exceptions

noexcept specification:  
noexcept

  (since C++11)