|
|
|
|
|
|
|
|
|
|
|
|||||||
#include <comstl_task_allocator.h>
Public Types | |
| typedef T | value_type |
| The value type. | |
| typedef task_allocator< value_type > | class_type |
| The type of the current parameterisation. | |
| typedef value_type * | pointer |
| The pointer type. | |
| typedef value_type const * | const_pointer |
| The non-mutating (const) pointer type. | |
| typedef value_type & | reference |
| The reference type. | |
| typedef value_type const & | const_reference |
| The non-mutating (const) reference type. | |
| typedef ptrdiff_t | difference_type |
| The difference type. | |
| typedef cs_size_t | size_type |
| The size type. | |
| typedef pointer | deallocate_pointer |
| The type used in deallocate(). | |
Public Methods | |
| task_allocator () comstl_throw_0() | |
| Default constructor. | |
| template<typename U> | task_allocator (const task_allocator< U > &) comstl_throw_0() |
| Copy constructor. | |
| ~task_allocator () comstl_throw_0() | |
| Destructor. | |
| size_type | max_size () const comstl_throw_0() |
| Returns the maximum number of allocatable entities. | |
| pointer | address (reference x) const comstl_throw_0() |
| Returns the address corresponding to the given reference. | |
| const_pointer | address (const_reference x) const comstl_throw_0() |
| Returns the address corresponding to the given non-mutable (const) reference. | |
| pointer | allocate (size_type n, task_allocator< void >::const_pointer pv=NULL) |
Allocates a block of memory sufficient to store n elements of type value_type. | |
| void | deallocate (pointer p, size_type n) |
| Deallocates a pointer. | |
| void | deallocate (pointer p) |
| Deallocates a pointer. | |
| void | construct (pointer p, value_type const &x) |
In-place constructs an instance of the value_type, with the given value. | |
| void | construct (pointer p) |
In-place constructs an instance of the value_type. | |
| void | destroy (pointer p) comstl_throw_0() |
| In-place destroys an instance. | |
| T | The value_type of the allocator |
|
|
The type of the current parameterisation.
|
|
|
The non-mutating (const) pointer type.
|
|
|
The non-mutating (const) reference type.
|
|
|
The type used in deallocate().
|
|
|
The difference type.
|
|
|
The pointer type.
|
|
|
The reference type.
|
|
|
The size type.
|
|
|
The value type.
|
|
|
Default constructor.
|
|
|
Copy constructor.
|
|
|
Destructor.
|
|
|
Returns the address corresponding to the given non-mutable (const) reference.
|
|
|
Returns the address corresponding to the given reference.
|
|
||||||||||||
|
Allocates a block of memory sufficient to store
|
|
|
In-place constructs an instance of the
|
|
||||||||||||
|
In-place constructs an instance of the
|
|
|
Deallocates a pointer.
|
|
||||||||||||
|
Deallocates a pointer.
|
|
|
In-place destroys an instance.
|
|
|
Returns the maximum number of allocatable entities.
|
|
|
| STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004 |