Reference

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

exception_ptr
Exception pointer (type)
nested_exception::rethrow_nested
Rethrow nested exception (public member function)
rethrow_if_nested
Rethrow if nested (function)

AltStyle によって変換されたページ (->オリジナル) /