|
ORIGINAL
|
Default memory allocator using allocators utilities. More...
#include <allocator.h>


Public Member Functions | |
| TYPE * | allocate (u_integer size) override |
| Allocates memory using global operator new. | |
| void | deallocate (TYPE *ptr, u_integer size) override |
| Deallocates memory using global operator delete. | |
Public Member Functions inherited from original::allocatorBase< TYPE, allocator > | |
| constexpr | allocatorBase () |
| Constructs a new allocatorBase instance. | |
| void | construct (O_TYPE *o_ptr, Args &&... args) |
| Constructs an object in allocated memory. | |
| virtual | ~allocatorBase ()=0 |
| Virtual destructor. | |
Additional Inherited Members | |
Public Types inherited from original::allocatorBase< TYPE, allocator > | |
| using | propagate_on_container_copy_assignment = std::false_type |
| No propagation on copy. | |
| using | propagate_on_container_move_assignment = std::false_type |
| No propagation on move. | |
| using | propagate_on_container_swap = std::false_type |
| No propagation on swap. | |
| using | propagate_on_container_merge = std::false_type |
| No propagation on merge. | |
| using | rebind_alloc = allocator< O_TYPE > |
| Rebinds allocator to different type. | |
Static Public Member Functions inherited from original::allocatorBase< TYPE, allocator > | |
| static void | destroy (O_TYPE *o_ptr) |
| Destroys an object without deallocating. | |
Default memory allocator using allocators utilities.
| TYPE | Type of objects to allocate |
Implements standard-compliant allocator using:
|
overridevirtual |
Allocates memory using global operator new.
| size | Number of elements to allocate |
| allocateError | When memory allocation fails |
Implements original::allocatorBase< TYPE, allocator >.
|
overridevirtual |
Deallocates memory using global operator delete.
| ptr | Pointer to memory to free |
| size | Number of elements (unused in this implementation) |
Implements original::allocatorBase< TYPE, allocator >.