cpp/error/rethrow exception

Throws the previously captured exception object referred-to by the exception pointer, 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 is null.

Return value
(none)

Exceptions
The exception object referred-to by if no copy is made.

Otherwise, a copy of such exception object if the implementation successfully copied the exception object.

Otherwise, std or the exception thrown when copying the exception object, if allocation or copying fails, respectively.