function
<exception>

std::nested_exception::nested_ptr

exception_ptr nested_ptr() const noexcept;
Get exception_ptr to nested exception
Returns an exception_ptr object that points to the nested exception.

This may be a null exception_ptr, if the nested_exception was constructed while not handling an exception.

Parameters

none

Return Value

An exception_ptr object pointing to the nested exception.

Exception safety

No-throw guarantee: this member function throws no exceptions.

See also