A 3-state boolean type. More...
#include <tribool.hpp>
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'. More... | |
tribool (bool initial_value) | |
Construct a new 3-state boolean value with the given boolean value, which may be true or false . More... | |
tribool (indeterminate_keyword_t) | |
Construct a new 3-state boolean value with an indeterminate value. More... | |
operator safe_bool () const | |
Use a 3-state boolean in a boolean context. More... | |
Public Attributes | |
enum boost::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 |
References true_value, and value.
enum boost::logic::tribool::value_t boost::logic::tribool::value |
Referenced by boost::logic::indeterminate(), operator safe_bool(), and boost::logic::operator!().