QuickCppLib 0.10
Eliminate all the tedious hassle when making state-of-the-art C++ 14 - 23 libraries!
|
Enumerations | |
enum class | tribool : signed char { tribool::false_ = -1 , tribool::true_ = 1 , tribool::other = 0 , tribool::indeterminate = 0 , tribool::unknown = 0 } |
A constexpr C++ 11 tribool. More... | |
Functions | |
constexpr tribool | make_tribool (int v) noexcept |
Explicit construction from some signed integer. <0 false, >0 true, 0 is other. | |
constexpr tribool | operator~ (tribool v) noexcept |
If tribool is true return false, if tribool is false return true, else return other. | |
constexpr tribool | operator& (tribool a, tribool b) noexcept |
If a is true and b is true, return true, if either is false return false, else return other. | |
constexpr tribool | operator| (tribool a, tribool b) noexcept |
If a is true or b is true, return true, if either is other return other, else return false. | |
constexpr bool | operator&& (tribool a, tribool b) noexcept |
If a is true and b is true, return true. | |
constexpr bool | operator|| (tribool a, tribool b) noexcept |
If a is true or b is true, return true. | |
constexpr bool | true_ (tribool a) noexcept |
Return true if tribool is true. | |
constexpr bool | false_ (tribool a) noexcept |
Return true if tribool is true. | |
constexpr bool | other (tribool a) noexcept |
Return true if tribool is other/indeterminate/unknown. | |
constexpr bool | indeterminate (tribool a) noexcept |
Return true if tribool is other/indeterminate/unknown. | |
constexpr bool | unknown (tribool a) noexcept |
Return true if tribool is other/indeterminate/unknown. | |