std::nested_exception::nested_ptr

来自cppreference.com
 
 
 
 
 
std::exception_ptr nested_ptr()constnoexcept;
(C++11 起)
(C++26 起为 constexpr)

返回指向存储的异常的指针,若存在。

[编辑]参数

(无)

[编辑]返回值

若存储异常则为指向它的 std::exception_ptr,否则为默认构造的 std::exception_ptr

close