◐ Shell
clean mode source ↗

std::error_condition::operator bool - cppreference.com

来自cppreference.com

explicit operator bool() const noexcept;
(C++11 起)

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

参数

(无)

返回值

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