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

Constructors

== Synopses

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

Create a sequential pool using an internal buffer&period;


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

[.small]#xref:BloombergLP/bslma/SequentialPool/2constructor-0e95.adoc[_» more&period;&period;&period;_]#

Create a sequential pool using an internal buffer and the specified alignment `strategy`&period;


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

[.small]#xref:BloombergLP/bslma/SequentialPool/2constructor-08.adoc[_» more&period;&period;&period;_]#

Create a sequential pool using an internal buffer of the specified `initialSize`&period;


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

[.small]#xref:BloombergLP/bslma/SequentialPool/2constructor-06.adoc[_» more&period;&period;&period;_]#

Create a sequential pool using an internal buffer of the specified `initialSize` and alignment `strategy`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslma/SequentialPool/2constructor-0f.adoc[SequentialPool](
    int initialSize,
    xref:BloombergLP/bslma/BufferAllocator/AlignmentStrategy.adoc[BufferAllocator::AlignmentStrategy] strategy,
    xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bslma/SequentialPool/2constructor-0f.adoc[_» more&period;&period;&period;_]#

Create a sequential pool using an internal buffer with a maximum buffer size&period;


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

[.small]#xref:BloombergLP/bslma/SequentialPool/2constructor-02.adoc[_» more&period;&period;&period;_]#

Create a sequential pool using the specified external `buffer`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslma/SequentialPool/2constructor-03.adoc[SequentialPool](
    char* buffer,
    int bufferSize,
    xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bslma/SequentialPool/2constructor-03.adoc[_» more&period;&period;&period;_]#

Create a sequential pool using an internal buffer with a maximum buffer size and the specified alignment `strategy`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslma/SequentialPool/2constructor-05.adoc[SequentialPool](
    int initialSize,
    int maxBufferSize,
    xref:BloombergLP/bslma/BufferAllocator/AlignmentStrategy.adoc[BufferAllocator::AlignmentStrategy] strategy,
    xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bslma/SequentialPool/2constructor-05.adoc[_» more&period;&period;&period;_]#

Create a sequential pool using the specified external `buffer` and alignment `strategy`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslma/SequentialPool/2constructor-07.adoc[SequentialPool](
    char* buffer,
    int bufferSize,
    xref:BloombergLP/bslma/BufferAllocator/AlignmentStrategy.adoc[BufferAllocator::AlignmentStrategy] strategy,
    xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bslma/SequentialPool/2constructor-07.adoc[_» more&period;&period;&period;_]#

Create a sequential pool using the specified external `buffer` with a maximum buffer size&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslma/SequentialPool/2constructor-04.adoc[SequentialPool](
    char* buffer,
    int bufferSize,
    int maxBufferSize,
    xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bslma/SequentialPool/2constructor-04.adoc[_» more&period;&period;&period;_]#

Create a sequential pool using the specified external `buffer`, maximum buffer size, and alignment `strategy`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslma/SequentialPool/2constructor-09.adoc[SequentialPool](
    char* buffer,
    int bufferSize,
    int maxBufferSize,
    xref:BloombergLP/bslma/BufferAllocator/AlignmentStrategy.adoc[BufferAllocator::AlignmentStrategy] strategy,
    xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bslma/SequentialPool/2constructor-09.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| The allocator used to supply memory&period;
| *strategy*
| The alignment strategy used for allocations&period;
| *initialSize*
| The initial internal buffer size (in bytes)&period;
| *maxBufferSize*
| The maximum internal buffer size (in bytes)&period;
| *buffer*
| The external buffer used for initial allocations&period;
| *bufferSize*
| The size (in bytes) of `buffer`&period;
|===


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