[#BloombergLP-bdlma-SequentialAllocator-2constructor-092]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/SequentialAllocator.adoc[SequentialAllocator]::SequentialAllocator
:relfileprefix: ../../../
:mrdocs:

Create a sequential allocator whose initial buffer has the specified `initialSize`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
SequentialAllocator(int initialSize);
----

== Description

Create a sequential allocator for allocating memory blocks from a sequence of dynamically&hyphen;allocated buffers, of which the initial buffer has the specified `initialSize` (in bytes)&period; Optionally specify a `basicAllocator` used to supply memory for the dynamically&hyphen;allocated buffers&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; Optionally specify a `growthStrategy` used to control buffer growth&period; If no `growthStrategy` is specified, geometric growth is used&period; Optionally specify an `alignmentStrategy` used to control alignment of allocated memory blocks&period; If no `alignmentStrategy` is specified, natural alignment is used&period; An implementation&hyphen;defined value is used as the initial size of the internal buffer&period; The behavior is undefined unless `0 &lt; initialSize`&period; Note that no limit is imposed on the size of the internal buffers when geometric growth is used&period; Also note that when constant growth is used, the size of the internal buffers will always be the same as the implementation&hyphen;defined value&period; Also note that `SequentialAllocator(int initialSize)` is provided to avoid ambiguous definitions&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *initialSize*
| initial size, in bytes, of the internal buffer
|===


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