Create a buffered sequential allocator with growth limited to maxBufferSize and the specified alignment strategy.
Synopsis
Declared in <bdlma_bufferedsequentialallocator.h>
BufferedSequentialAllocator(
char* buffer,
bsls::Types::size_type size,
bsls::Types::size_type maxBufferSize,
bsls::Alignment::Strategy alignmentStrategy,
bslma::Allocator* basicAllocator = 0);
Parameters
Name |
Description |
buffer |
external buffer from which to allocate |
size |
size in bytes of |
maxBufferSize |
maximum dynamically allocated buffer size in bytes |
alignmentStrategy |
strategy used to align allocated memory blocks |
basicAllocator |
memory allocator; null uses the default |
Created with MrDocs