Namespaces
Variants
Actions

std::rethrow_exception

From cppreference.com
< cpp‎ | error
 
 
 
Defined in header <exception>
[[noreturn]] void rethrow_exception( std::exception_ptr p );
(since C++11)
(constexpr since C++26)

Throws the previously captured exception object referred-to by the exception pointer p, or a copy of that object.

It is unspecified whether a copy is made. If a copy is made, the storage for it is allocated in an unspecified way.

The behavior is undefined if p is null.

Contents

[