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

Create a sequential pool using an internal buffer&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
SequentialPool(xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0);
----

== Description

Create a sequential pool for allocating memory blocks from an internal buffer&period; Optionally specify an alignment `strategy` used to align allocated memory blocks&period; If `strategy` is not specified, _Natural Alignment_ is used&period; Optionally specify an `initialSize` the absolute value of which indicates the initial size (in bytes) for the internal buffer&period; If `initialSize` is not specified, an implementation&hyphen;defined value is used&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; If an `allocate` or `reserveCapacity` request cannot be satisfied from the current buffer, a new buffer is allocated, the size of which is determined by a buffer growth strategy implied by `initialSize`&period; If `initialSize` was specified and is negative, or if it was _not_ specified, the buffer growth strategy used is _Geometric Growth_&semi; otherwise it is _Constant Growth_&period; (See the component level documentation for further details&period;) In either case, the new buffer will have sufficient capacity to satisfy the request&period; If &ast;Geometric Growth&ast; is in effect, no limit is imposed on the size of buffers&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| The allocator used to supply memory&period;
|===


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