.TH "std::tr2::bool_set" 3cxx "Tue Jul 18 2023" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::tr2::bool_set .SH SYNOPSIS .br .PP .SS "Public Member Functions" .in +1c .ti -1c .RI "constexpr \fBbool_set\fP ()" .br .RI "Default constructor\&. " .ti -1c .RI "constexpr \fBbool_set\fP (bool __t)" .br .RI "Constructor from bool\&. " .ti -1c .RI "bool \fBcontains\fP (\fBbool_set\fP __b) const" .br .ti -1c .RI "bool \fBequals\fP (\fBbool_set\fP __b) const" .br .RI "Return true if states are equal\&. " .ti -1c .RI "bool \fBis_emptyset\fP () const" .br .RI "Return true if this is empty\&. " .ti -1c .RI "bool \fBis_indeterminate\fP () const" .br .RI "Return true if this is indeterminate\&. " .ti -1c .RI "bool \fBis_singleton\fP () const" .br .RI "Return true if this is false or true (normal boolean)\&. " .ti -1c .RI "\fBoperator bool\fP () const" .br .RI "Conversion to bool\&. " .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static \fBbool_set\fP \fBemptyset\fP ()" .br .ti -1c .RI "static \fBbool_set\fP \fBindeterminate\fP ()" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "\fBbool_set\fP \fBoperator!\fP (\fBbool_set\fP __b)" .br .ti -1c .RI "\fBbool_set\fP \fBoperator&\fP (\fBbool_set\fP __s, \fBbool_set\fP __t)" .br .ti -1c .RI "template \fBstd::basic_ostream\fP< CharT, Traits > & \fBoperator<<\fP (\fBstd::basic_ostream\fP< CharT, Traits > &__out, \fBbool_set\fP __b)" .br .ti -1c .RI "\fBbool_set\fP \fBoperator==\fP (\fBbool_set\fP __s, \fBbool_set\fP __t)" .br .ti -1c .RI "template \fBstd::basic_istream\fP< CharT, Traits > & \fBoperator>>\fP (\fBstd::basic_istream\fP< CharT, Traits > &__in, \fBbool_set\fP &__b)" .br .ti -1c .RI "\fBbool_set\fP \fBoperator^\fP (\fBbool_set\fP __s, \fBbool_set\fP __t)" .br .ti -1c .RI "\fBbool_set\fP \fBoperator|\fP (\fBbool_set\fP __s, \fBbool_set\fP __t)" .br .in -1c .SH "Detailed Description" .PP bool_set .PP See N2136, Bool_set: multi-valued logic by Hervé Brönnimann, Guillaume Melquiond, Sylvain Pion\&. .PP 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\&. .SH "Constructor & Destructor Documentation" .PP .SS "constexpr std::tr2::bool_set::bool_set ()\fC [inline]\fP, \fC [constexpr]\fP" .PP Default constructor\&. .SS "constexpr std::tr2::bool_set::bool_set (bool __t)\fC [inline]\fP, \fC [constexpr]\fP" .PP Constructor from bool\&. .SH "Member Function Documentation" .PP .SS "bool std::tr2::bool_set::equals (\fBbool_set\fP __b) const\fC [inline]\fP" .PP Return true if states are equal\&. .SS "bool std::tr2::bool_set::is_emptyset () const\fC [inline]\fP" .PP Return true if this is empty\&. .SS "bool std::tr2::bool_set::is_indeterminate () const\fC [inline]\fP" .PP Return true if this is indeterminate\&. .SS "bool std::tr2::bool_set::is_singleton () const\fC [inline]\fP" .PP Return true if this is false or true (normal boolean)\&. .SS "std::tr2::bool_set::operator bool () const\fC [inline]\fP" .PP Conversion to bool\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.