Zero  0.1.0
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
PooledAllocator< void > Class Template Reference

A specialisation of the pooled allocator for the void type. More...

#include <stl_pooled_alloc.h>

Classes

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. More...
 
typedef ptrdiff_t difference_type
 A type that can represent the difference between any two pointers in the allocation model. More...
 
typedef void value_type
 Identical to void. More...
 
typedef void * pointer
 Pointer to void;. More...
 
typedef void const * const_pointer
 Pointer to const void. More...
 

Public Member Functions

 PooledAllocator ()
 Creates a pooled allocator with no pool. More...
 
 PooledAllocator (Pool *pool)
 Creates a pooled allocator to the given pool. More...
 

Public Attributes

Poolm_pool
 The pool for this allocator. More...
 

Detailed Description

template<>
class PooledAllocator< void >

A specialisation of the pooled allocator for the void type.

Member Typedef Documentation

§ const_pointer

typedef void const* PooledAllocator< void >::const_pointer

Pointer to const void.

§ difference_type

typedef ptrdiff_t PooledAllocator< void >::difference_type

A type that can represent the difference between any two pointers in the allocation model.

§ pointer

typedef void* PooledAllocator< void >::pointer

Pointer to void;.

§ size_type

typedef size_t PooledAllocator< void >::size_type

A type that can represent the size of the largest object in the allocation model.

§ value_type

typedef void PooledAllocator< void >::value_type

Identical to void.

Constructor & Destructor Documentation

§ PooledAllocator() [1/2]

PooledAllocator< void >::PooledAllocator ( )
inline

Creates a pooled allocator with no pool.

This allocator will allocate off the heap.

§ PooledAllocator() [2/2]

PooledAllocator< void >::PooledAllocator ( Pool pool)
inline

Creates a pooled allocator to the given pool.

Member Data Documentation

§ m_pool

Pool* PooledAllocator< void >::m_pool

The pool for this allocator.


The documentation for this class was generated from the following file: