is there any tristate type in c++ stl?
A:
No, your best bet is probably to define a custom class and overload all operators (operator&& etc).
Andy
2009-03-05 07:02:29
tribool is handy, but it always annoyed me that the tribool default constructor constructed an instance with value false, rather than indeterminate.
timday
2009-03-05 13:23:17
Right, that is possibly not the most logical default value. But you can always supply an initial value to the constructor.
Dani van der Meer
2009-03-05 14:22:03