std::bad_optional_access
Defined in header <optional> | ? | ? |
---|---|---|
class bad_optional_access; | ? | (since C++17) |
定义要由std::optional::value
当访问不包含值的可选对象时。
二次
二次
继承图
成员函数
(constructor) | constructs the exception object (public member function) |
---|
继承自STD:例外
成员函数
(destructor) virtual | destructs the exception object (virtual public member function of std::exception) |
---|---|
what virtual | returns an explanatory string (virtual public member function of std::exception) |
? cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com