39 #ifndef BLOCXX_BOOL_HPP_INCLUDE_GUARD_
40 #define BLOCXX_BOOL_HPP_INCLUDE_GUARD_
41 #include "blocxx/BLOCXX_config.h"
45 namespace BLOCXX_NAMESPACE
56 class BLOCXX_COMMON_API
Bool
68 Bool(
bool val) : m_val(val) {}
86 bool operator== (
const bool arg)
const {
return m_val == arg; }
100 bool operator!= (
const bool arg)
const {
return m_val != arg; }
111 operator bool()
const {
return m_val; }
116 bool operator !()
const {
return !m_val; }
126 void writeObject(std::streambuf & ostrm)
const;
131 void readObject(std::streambuf & istrm);
150 return b1 != b2.
m_val;
157 Bool(
volatile const void*);
158 Bool(
volatile void*);
169 BLOCXX_COMMON_API std::ostream&
operator << (std::ostream& ostrm,
const Bool& arg);