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

Create a sequential allocator with growth limited to `maxBufferSize` and the specified growth strategy&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
SequentialAllocator(
    xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size&lowbar;type] initialSize,
    xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size&lowbar;type] maxBufferSize,
    xref:BloombergLP/bsls/BlockGrowth/Strategy.adoc[bsls::BlockGrowth::Strategy] growthStrategy,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *initialSize*
| initial size, in bytes, of the internal buffer
| *maxBufferSize*
| maximum dynamically allocated buffer size in bytes
| *growthStrategy*
| strategy controlling growth of internal buffers
| *basicAllocator*
| memory allocator&semi; null uses the default
|===


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