![]() |
Home | Libraries | People | FAQ | More |
boost::logic::tribool — A 3-state boolean type.
class tribool { public: // construct/copy/destruct tribool(); tribool(bool); tribool(indeterminate_keyword_t); // public member functions operator safe_bool() const; enum boost::logic::tribool::value_t value; };
3-state boolean values are either true, false, or indeterminate.
tribool
construct/copy/destructtribool();
Construct a new 3-state boolean value with the value 'false'.
Throws: | Will not throw. |
tribool(bool value);
Construct a new 3-state boolean value with the given boolean value, which may be true
or false
.
Throws: | Will not throw. |
tribool(indeterminate_keyword_t);
Construct a new 3-state boolean value with an indeterminate value.
Throws: | Will not throw. |
Copyright © 2002-2004 Douglas Gregor |