Exchange the stored exception with that of another instance of std::exception_ptr.
void swap(exception_ptr& other);
- Effects:
*thisreferences the stored exception referenced byotherprior to the call (if any);otherreferences the stored exception referenced by*thisprior to the call (if any).- Throws:
Nothing.
Header
#include <exception_ptr>