41#ifndef _QX_MODE_RELEASE
42#if _QX_USE_MEM_LEAK_DETECTION
86 bool operator=(
bool ___value);
87 operator bool()
const;
103 _Element operator[](
unsigned long __idx);
104 bool at(
unsigned long __idx)
const;
105 void reset(
unsigned long __idx);
106 void set(
unsigned long __idx);
108 unsigned long size()
const {
return _M_length; }
110 unsigned long count(
unsigned long __beg,
unsigned long __end)
const;
146 *(
_M_byte_ptr + _M_byte_idx) &= ~(1 << _M_bit_idx);
155inline bool_array::_Element::operator bool()
const
157 return *(
_M_byte_ptr + _M_byte_idx) & (1 << _M_bit_idx) ? true :
false;
171 throw std::out_of_range(
"invalid bool_array size");
174 throw std::bad_alloc();
198 size_t __byte_idx, __bit_idx;
200 throw std::out_of_range(
"invalid bool_array subscript");
201 __byte_idx = (size_t)(__idx / 8);
202 __bit_idx = (size_t)(__idx % 8);
203 return *(
_M_byte_ptr + __byte_idx) & (1 << __bit_idx) ? true :
false;
214 size_t __byte_idx, __bit_idx;
216 throw std::out_of_range(
"invalid bool_array subscript");
217 __byte_idx = (size_t)(__idx / 8);
218 __bit_idx = (size_t)(__idx % 8);
230 size_t __byte_idx, __bit_idx;
232 throw std::out_of_range(
"invalid bool_array subscript");
233 __byte_idx = (size_t)(__idx / 8);
234 __bit_idx = (size_t)(__idx % 8);
bool operator=(bool ___value)
_Element(BYTE *__ptr, unsigned long __idx)
void reset(unsigned long __idx)
bool create(unsigned long __size)
_Element operator[](unsigned long __idx)
bool at(unsigned long __idx) const
void initialize(bool ___value)
void set(unsigned long __idx)
unsigned long size() const
unsigned long count(unsigned long __beg, unsigned long __end) const
unsigned long count() const
Root namespace for all QxOrm library features.