Make one std::exception_ptr object reference
the same stored exception as another instance.
exception_ptr& operator=(exception_ptr const& other);
- Effects:
If
otherhas a stored exception, then*thisreferences the same stored exception. If*thishad a stored exception prior to the call, and it was the onlystd::exception_ptrinstance referencing that stored exception, destroy that stored exception.- Returns:
*this- Postconditions:
*this==otheristrue.*this!=otherisfalse.- Throws:
Nothing.
Header
#include <exception_ptr>