Class
Allocator
Manager for allocated memory.
Include Headers
basic.h, seqan/basic.h
Parameters
The specializing type. Metafunctions: Spec |
Remarks
There are two reasons for using non-trivial allocators:
1. Allocators support the function clear for a fast deallocation of all
allocated memory blocks.
2. Some allocators are faster in allocating an deallocating memory.
Pool allocators like e.g. Single Pool Allocator or Multi Pool Allocator
speed up allocate, deallocate, and clear for
pooled memory blocks.
Specializations
Allocator that pools one or more consecutive memory blocks of a specific size. | |
Allocator that pools memory blocks. | |
General purpose allocator. | |
Allocator that pools memory blocks of specific size. |
Functions
Allocates memory from heap. | |
Deallocates all memory blocks. | |
Deallocates memory. |
Example Programs
SeqAn - Sequence Analysis Library - www.seqan.de