A bool-valued object with a definite size, where sizeof (boolean <T>) == sizeof (T). It either has all bits zero, representing false, or all bits one, representing true -- the class defends this invariant. The type corresponds to the scalar type of an SIMD boolean type e.g. in Altivec, macstl::boolean <char> corresponds to the scalar type of Altivec __vector bool char.
| T | The type with same size. Usually an integral type. |
Public Types | |
| typedef T | data_type |
| The underlying data type. | |
Public Member Functions | |
| template<typename T2> | |
| boolean (const boolean< T2 > &value) | |
| Constructs from other boolean. | |
| boolean (bool value=false) | |
| Constructs with given value. | |
| T | data () const |
| Gets the data. | |
| template<typename T2> | |
| boolean & | operator= (boolean< T2 > value) |
| Assigns the other boolean. | |
| boolean & | operator= (bool other) |
| Assigns the other value. | |