39#ifndef BLOCXX_BOOL_HPP_INCLUDE_GUARD_
40#define BLOCXX_BOOL_HPP_INCLUDE_GUARD_
41#include "blocxx/BLOCXX_config.h"
68 Bool(
bool val) : m_val(val) {}
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);
140 return b1.m_val <
b2.m_val;
150 return b1 !=
b2.m_val;
Array<> wraps std::vector<> in COWReference<> adding ref counting and copy on write capability.
The Bool class is an abstraction for the boolean data type.
Bool(volatile const void *)
Bool()
Create an Bool object initialized to false.
Bool(const Bool &arg)
Copy constructor.
friend bool operator!=(bool b1, Bool b2)
Not equal operator (friend function)
Bool(bool val)
Create an Bool object initialized to a given boolean value.
This String class is an abstract data type that represents as NULL terminated string of characters.
bool operator<(const Array< T > &x, const Array< T > &y)
bool operator==(const Array< T > &x, const Array< T > &y)
ostream & operator<<(ostream &ostrm, const Bool &arg)
BLOCXX_EXPORT_TEMPLATE(BLOCXX_COMMON_API, Array, Bool)
bool operator!=(const Array< T > &x, const Array< T > &y)
Determine two Arrays are not equal.