Boost logo

Boost :

From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2002-08-02 01:11:14


> > I've just placed a 3-state boolean type in the sandbox, available here:
> >
> Maybe it can make sense also to create tribool_bitset<> and
vector<tribool>.
> /Pavel

I would suggest using a 'quadbool' instead in this case because
vector<tribool> won't be optimal at all to reserve bits since tribool
already takes 2 bits... why not a 2 bits quadbool?... Let's say: true,
false (1st bit), probably true, probably false (2nd bit).

My 0.02$,

Philippe A. Bouchard


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