Create a buffered sequential allocator with growth limited to maxBufferSize and the specified growth strategy.
Declared in <bdlma_bufferedsequentialallocator.h>
BufferedSequentialAllocator(
char* buffer,
bsls::Types::size_type size,
bsls::Types::size_type maxBufferSize,
bsls::BlockGrowth::Strategy growthStrategy,
bslma::Allocator* basicAllocator = 0);
| Name | Description |
|---|---|
| buffer | external buffer from which to allocate |
| size | size in bytes of buffer |
| maxBufferSize | maximum dynamically allocated buffer size in bytes |
| growthStrategy | strategy controlling growth of internal buffers |
| basicAllocator | memory allocator; null uses the default |