Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function indeterminate

boost::logic::indeterminate — Keyword and test function for the indeterminate tribool value.

Synopsis

// In header: <boost/logic/tribool.hpp>


bool indeterminate(tribool x, unspecified dummy = unspecified);

Description

The indeterminate function has a dual role. It's first role is as a unary function that tells whether the tribool value is in the "indeterminate" state. It's second role is as a keyword representing the indeterminate (just like "true" and "false" represent the true and false states). If you do not like the name "indeterminate", and would prefer to use a different name, see the macro BOOST_TRIBOOL_THIRD_STATE.

Returns:

x.value == tribool::indeterminate_value

Throws:

Will not throw.

PrevUpHomeNext