Documentation Home >> Headers >> <exception_ptr> Header >> std::exception_ptr >> std::exception_ptr Copy Constructor

Construct a std::exception_ptr object referencing the same stored exception as another instance.

exception_ptr(exception_ptr const& other);

Effects:

Constructs a new std::exception_ptr instance. If other has a stored exception, then *this references the same stored exception.

Postconditions:

*this==other is true. *this!=other is false.

Throws:

Nothing.

Header

#include <exception_ptr>

See Also