std::nested_exception::nested_exception

std::nested_exception::nested_exception

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

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

Exceptions

noexcept specification:
noexcept

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/error/nested_exception/nested_exception

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部