A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/exception/nested_exception/nested_exception/ below:

public member function

<exception>

std::nested_exception::nested_exception default (1)
nested_exception() noexcept;
copy (2)
nested_exception (const nested_exception& e) noexcept = default;

Construct nested_exception

Constructs a nested_exception object.

The default constructor (1) stores in the object an exception_ptr that points to the currently handled exception, as returned by current_exception. If no exception is being handled, the object stores a null exception_ptr.

The copy constructor (2) is explicitly defaulted.



Parameters
e
Another nested_exception object.

Example See nested_exception.

Exception safetyNo-throw guarantee: this member function never throws exceptions.

See also
throw_with_nested
Throw with nested (function)
nested_exception::nested_ptr
Get exception_ptr to nested exception (function)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4