[#BloombergLP-bdlma-BufferManager-2constructor-0c7]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/BufferManager.adoc[BufferManager]::BufferManager
:relfileprefix: ../../../
:mrdocs:

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

== Synopsis

Declared in `&lt;bdlma&lowbar;buffermanager&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
BufferManager(xref:BloombergLP/bsls/Alignment/Strategy.adoc[bsls::Alignment::Strategy] strategy = bsls&colon;&colon;Alignment&colon;&colon;BSLS&lowbar;NATURAL);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
