std::tr2::bool_set(3) Library Functions Manual std::tr2::bool_set(3)

std::tr2::bool_set

#include <bool_set>


constexpr bool_set ()
Default constructor. constexpr bool_set (bool __t)
Constructor from bool. bool contains (bool_set __b) const
bool equals (bool_set __b) const
Return true if states are equal. bool is_emptyset () const
Return true if this is empty. bool is_indeterminate () const
Return true if this is indeterminate. bool is_singleton () const
Return true if this is false or true (normal boolean). operator bool () const
Conversion to bool.


static bool_set emptyset ()
static bool_set indeterminate ()


bool_set operator! (bool_set __b)
bool_set operator& (bool_set __s, bool_set __t)
template<typename CharT , typename Traits > std::basic_ostream< CharT, Traits > & operator<< (std::basic_ostream< CharT, Traits > &__out, bool_set __b)
bool_set operator== (bool_set __s, bool_set __t)
template<typename CharT , typename Traits > std::basic_istream< CharT, Traits > & operator>> (std::basic_istream< CharT, Traits > &__in, bool_set &__b)
bool_set operator^ (bool_set __s, bool_set __t)
bool_set operator| (bool_set __s, bool_set __t)

bool_set

See N2136, Bool_set: multi-valued logic by Hervé Brönnimann, Guillaume Melquiond, Sylvain Pion.

The implicit conversion to bool is slippery! I may use the new explicit conversion. This has been specialized in the language so that in contexts requiring a bool the conversion happens implicitly. Thus most objections should be eliminated.

Default constructor.

Constructor from bool.

Return true if states are equal.

Return true if this is empty.

Return true if this is indeterminate.

Return true if this is false or true (normal boolean).

Referenced by operator bool().

Conversion to bool.

References is_singleton().

Generated automatically by Doxygen for libstdc++ from the source code.

libstdc++