PooledAllocator< T > Class Template Reference
A STL-compliant pooled memory allocator. Much more efficient for lists of small data structures.
Data Structures
- struct rebind
- A struct to construct an allocator for a different type. More...
Public Types
- typedef size_t size_type
- A type that can represent the size of the largest object in the allocation model.
- typedef ptrdiff_t difference_type
- A type that can represent the difference between any two pointers in the allocation model.
- typedef T value_type
- Identical to T.
- typedef T * pointer
- Pointer to T;.
- typedef T const * const_pointer
- Pointer to const T.
- typedef T & reference
- Reference to T.
- typedef T const & const_reference
- Reference to const T.
Public Member Functions
Data Fields
template<typename T>
class PooledAllocator< T >
Member Typedef Documentation
Constructor & Destructor Documentation
template<typename T>
template<typename U >
Member Function Documentation
All count
objects in the area pointed by block
must be destroyed prior to this call. count
must match the value passed to allocate to obtain this memory. Does not throw exceptions. block
must not be null.
References Pool::Deallocate(), and PooledAllocator< T >::m_pool.
Effect: new( element ) T( arg )
Field Documentation