std::rethrow_exception (3) - Linux Manuals
std::rethrow_exception: std::rethrow_exception
NAME
std::rethrow_exception - std::rethrow_exception
Synopsis
Defined in header <exception>
[[noreturn]] void rethrow_exception( std::exception_ptr p ) (since C++11)
Throws the previously captured exception object, referred to by the exception pointer p.
Parameters
p - non-null std::exception_ptr
Return value
(none)
Example
// Run this code
Output:
See also
exception_ptr shared pointer type for handling exception objects
(C++11)
current_exception captures the current exception in a std::exception_ptr
(C++11)