Namespaces
Variants

std::nested_exception::nested_ptr

来自 zh.cppreference.net
 
 
 
 
 
std::exception_ptr nested_ptr() const noexcept;
(自 C++11)
(自 C++26 起为 constexpr)

返回指向已存储异常的指针,如果有的话。

参数

(无)

返回值

若存储了异常,则返回指向该存储异常的 std::exception_ptr ;否则返回默认初始化的 std::exception_ptr 。