Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function operator||

boost::logic::operator|| — Computes the logical disjunction of two tribools.

Synopsis

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


tribool (tribool x, tribool y);
tribool (tribool x,  y);
tribool ( x, tribool y);
tribool (, tribool x);
tribool (tribool x, );

Description

Returns:

the result of logically ORing the two tribool values, according to the following table:

|| false true indeterminate
false false true indeterminate
true true true true
indeterminate indeterminate true indeterminate

Throws:

Will not throw.

PrevUpHomeNext