std::error_condition::operator bool

来自cppreference.com
 
 
 
 
 
explicit operator bool() const noexcept;
(C++11 起)

检查存储的错误值是否非零。

[编辑] 参数

(无)

[编辑] 返回值

value != 0 则为 true,否则为 false