Namespaces
Variants

std::error_condition:: operator bool

From cppreference.net
Utilities library
explicit operator bool ( ) const noexcept ;
(自 C++11 起)

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

参数

(无)

返回值

value ! = 0 时返回 true ,否则返回 false