std::get_unexpected
STD:得到[医]意料之外
Defined in header | | |
---|---|---|
std::unexpected_handler get_unexpected( | | (until C++17) (since c++11, deprecated in C++11) |
返回当前安装的std::unexpected_handler
,它可能是空指针。
This function is thread-safe. Prior call to std::set_unexpected synchronizes-with (see std::memory_order) the subsequent calls to this function. | (since C++11) |
---|
参数
%280%29
返回值
当前安装的std::unexpected_handler
...
例外
noexcept
规格:
noexcept
另见
unexpected_handler (until C++17) | the type of the function called by std::unexpected (typedef) |
---|---|
set_unexpected (until C++17) | changes the function to be called by std::unexpected (function) |
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。