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 operator!

boost::logic::operator! — Computes the logical negation of a tribool.

Synopsis

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


BOOST_CONSTEXPR tribool operator!(tribool x);

Description

Returns:

the logical negation of the tribool, according to the table:

!
false true
true false
indeterminate indeterminate

Throws:

Will not throw.

PrevUpHomeNext