62 constexpr bool_set(
bool __t) : _M_b(_Bool_set_val(__t)) { }
70 {
return __b._M_b == _M_b; }
74 {
return _M_b == _S_empty; }
78 {
return _M_b == _S_indet; }
82 {
return _M_b == _S_false || _M_b == _S_true_; }
111 {
return __b._M_not(); }
115 {
return __s._M_xor(__t); }
119 {
return __s._M_or(__t); }
123 {
return __s._M_and(__t); }
127 {
return __s._M_eq(__t); }
132 template<
typename CharT,
typename Traits>
133 friend std::basic_ostream<CharT, Traits>&
134 operator<<(std::basic_ostream<CharT, Traits>& __out,
bool_set __b)
140 template<
typename CharT,
typename Traits>
141 friend std::basic_istream<CharT, Traits>&
142 operator>>(std::basic_istream<CharT, Traits>& __in,
bool_set& __b)
146 if (__c >= _S_false && __c < _S_empty)
147 __b._M_b =
static_cast<_Bool_set_val
>(__c);
153 enum _Bool_set_val:
unsigned char
165 bool_set(_Bool_set_val __c) : _M_b(__c) { }
169 {
return _S_not[this->_M_b]; }
173 {
return _S_xor[this->_M_b][__b._M_b]; }
177 {
return _S_or[this->_M_b][__b._M_b]; }
181 {
return _S_and[this->_M_b][__b._M_b]; }
185 {
return _S_eq[this->_M_b][__b._M_b]; }
188 static _Bool_set_val _S_not[4];
191 static _Bool_set_val _S_xor[4][4];
194 static _Bool_set_val _S_or[4][4];
197 static _Bool_set_val _S_and[4][4];
200 static _Bool_set_val _S_eq[4][4];