Create a buffer manager for allocating memory blocks.

Synopsis

Declared in <bdlma_buffermanager.h>

explicit
BufferManager(bsls::Alignment::Strategy strategy = bsls::Alignment::BSLS_NATURAL);

Description

Create a buffer manager for allocating memory blocks. Optionally specify an alignment strategy used to align allocated memory blocks. If strategy is not specified, natural alignment is used. A default constructed buffer manager is unable to allocate any memory until an external buffer is provided by calling the replaceBuffer method.

Parameters

Name

Description

strategy

alignment strategy for allocated memory blocks

Created with MrDocs