Documentation Home >> Headers >> <exception_ptr> Header >> std::exception_ptr >> std::exception_ptr::swap Member Function

Exchange the stored exception with that of another instance of std::exception_ptr.

void swap(exception_ptr& other);

Effects:

*this references the stored exception referenced by other prior to the call (if any); other references the stored exception referenced by *this prior to the call (if any).

Throws:

Nothing.

Header

#include <exception_ptr>

See Also