![]() |
staticlib_support
1.2.1
|
A 3-state boolean type. More...
#include <staticlib/support/tribool.hpp>
Classes | |
| struct | dummy |
| INTERNAL ONLY. | |
Public Types | |
| enum | value_t { false_value, true_value, indeterminate_value } |
| The actual stored value in this 3-state boolean, which may be false, true, or indeterminate. More... | |
Public Member Functions | |
| tribool () | |
| Construct a new 3-state boolean value with the value 'false'. | |
| tribool (bool initial_value) | |
Construct a new 3-state boolean value with the given boolean value, which may be true or false. | |
| tribool (indeterminate_keyword_t) | |
| Construct a new 3-state boolean value with an indeterminate value. | |
| operator safe_bool () const | |
| Use a 3-state boolean in a boolean context. | |
Public Attributes | |
| enum staticlib::support::logic::tribool::value_t | value |
A 3-state boolean type.
3-state boolean values are either true, false, or indeterminate.
|
inline |
Construct a new 3-state boolean value with the value 'false'.
| nothrow |
|
inline |
Construct a new 3-state boolean value with the given boolean value, which may be true or false.
| nothrow |
|
inline |
Construct a new 3-state boolean value with an indeterminate value.
| nothrow |
|
inline |
Use a 3-state boolean in a boolean context.
Will evaluate true in a boolean context only when the 3-state boolean is definitely true.
| nothrow |
| enum staticlib::support::logic::tribool::value_t staticlib::support::logic::tribool::value |
1.8.1.2