Create a sequential allocator for allocating memory blocks from a sequence of dynamically‐allocated buffers. Optionally specify a basicAllocator used to supply memory for the dynamically‐allocated buffers. If basicAllocator is 0, the currently installed default allocator is used. Optionally specify a growthStrategy used to control buffer growth. If no growthStrategy is specified, geometric growth is used. Optionally specify an alignmentStrategy used to control alignment of allocated memory blocks. If no alignmentStrategy is specified, natural alignment is used. Note that no limit is imposed on the size of the internal buffers when geometric growth is used.
Synopsis
Declared in <bdlma_sequentialallocator.h>
explicit
SequentialAllocator(bslma::Allocator* basicAllocator = 0);
Created with MrDocs