[ Web Proxy ]
URL:
Viewing: https://cppreference.com/cpp/error/nested_exception/nested_exception [Back]  [Original]

std::nested_exception::nested_exception - cppreference.com
cppreference.com
Namespaces
Variants

std::nested_exception::nested_exception

From cppreference.com
 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)(C++20)(C++20)    
(C++20)
Swap and type operations
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)



 
 
 
nested_exception() noexcept;
(1) (since C++11)
(constexpr since C++26)
nested_exception( const nested_exception& other ) noexcept = default;
(2) (since C++11)
(constexpr since C++26)

Constructs new nested_exception object.

1) Default constructor. Stores an exception object obtained by calling std::current_exception() within the new nested_exception object.
2) Copy constructor. Initializes the object with the exception stored in other.

Parameters

other - nested exception to initialize the contents with

Web Proxy Viewer  |  New URL  |  Original Page