Make one std::exception_ptr
object reference
the same stored exception as another instance.
exception_ptr& operator=(exception_ptr const& other);
If other
has a
stored exception, then *this
references the same stored
exception. If *this
had a stored exception prior to the call, and it was the only
std::exception_ptr
instance
referencing that stored exception, destroy that stored exception.
*this
*this==other
is true
. *this!=other
is false
.
Nothing.
#include <exception_ptr>