Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2002-08-28 11:23:48


FWIW, I just encounted a need for tribool :)

On Thu, 1 Aug 2002, Douglas Gregor wrote:
gregod> I've just placed a 3-state boolean type in the sandbox, available
gregod> here:
gregod>
gregod> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/boost-sandbox/boost-sandbox/boost/tribool.hpp?rev=HEAD&content-type=text/vnd.viewcvs-markup
gregod>
gregod> The type, tribool, can be either true, false, or indeterminate. It
gregod> follows the normal rules for 3-valued logic, and supports all
gregod> boolean operations (==, !=, !, &&, ||), including conversions from
gregod> bool and conversion to bool (via the safe_bool idiom).
gregod>

----------------------------------------------------------------------
 Jeremy Siek http://php.indiana.edu/~jsiek/
 Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
 C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk