std::bad_optional_access
STD:不好[医]任选[医]存取
Defined in header | | |
---|---|---|
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。