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

Create a sequential pool with growth limited to `maxBufferSize`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
SequentialPool(
    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/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

Create a sequential pool for allocating memory blocks from a sequence of dynamically&hyphen;allocated buffers, of which the initial buffer has the specified `initialSize` (in bytes), and the internal buffer growth is limited to the specified `maxBufferSize`&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; The behavior is undefined unless `0 &lt; initialSize` and `initialSize &lt;&equals; maxBufferSize`&period; Note that when constant growth is used, the size of the internal buffers will always be the same as `initialSize`&period;

== Parameters

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


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