Lines Matching refs:max_offset
48 static const unsigned char max_offset = (unsigned char)-1; member in bounded_pointer
50 bounded_pointer() : m_offset(max_offset) {} in bounded_pointer()
90 return m_offset != max_offset? &bounded_pointer::unspecified_bool_type_func : 0; in operator unspecified_bool_type()
147 static const unsigned char max_offset = pointer::max_offset; member in bounded_reference
151 : m_offset(max_offset) in bounded_reference()
159 { assert(m_offset != max_offset); return *(bounded_pointer< T >::base() + m_offset); } in raw()
162 { assert(m_offset != max_offset); return raw(); } in operator T&()
165 … { assert(m_offset != max_offset); bounded_pointer< T > res; res.m_offset = m_offset; return res; } in operator &()
168 { assert(m_offset != max_offset); raw() = rhs; return *this; } in operator =()
171 { assert(m_offset != max_offset); raw() = rhs.raw(); return *this; } in operator =()
197 …_reference(bounded_pointer< T > bptr) : m_offset(bptr.m_offset) { assert(m_offset != max_offset); } in bounded_reference()
209 static const unsigned char max_offset = pointer::max_offset; member in bounded_allocator
217 for (i = 0; i < max_offset && m_in_use[i]; ++i); in allocate()
218 assert(i < max_offset); in allocate()
238 m_in_use = boost::container::vector< bool >(max_offset, false); in init()
240 m_base = static_cast< T* >(::operator new [] (max_offset * sizeof(T))); in init()
245 return m_in_use.size() == max_offset; in inited()
251 for (unsigned char i = 0; i < max_offset; ++i) in is_clear()