Documentation Home >> Headers >> <exception_ptr> Header >> std::rethrow_exception Function

Rethrow the stored exception referenced by an instance of std::exception_ptr.

void rethrow_exception(std::exception_ptr e);

Preconditions:

(bool)e==true

Throws:

The stored exception referenced by e.

Header

#include <exception_ptr>

See Also