[#BloombergLP-bslma-SequentialPool-2constructor-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/SequentialPool.adoc[SequentialPool]::SequentialPool :relfileprefix: ../../../ :mrdocs: Create a sequential pool using the specified external `buffer`. == Synopsis Declared in `<bslma_sequentialpool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- SequentialPool( char* buffer, int bufferSize, xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0); ---- == Description Create a sequential pool for allocating memory blocks initially from the specified `buffer` the size (in bytes) of which is indicated by the absolute value of the specified `bufferSize`. Optionally specify an alignment `strategy` used to align allocated memory blocks. If `strategy` is not specified, _Natural Alignment_ is used. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. 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 `bufferSize`. If `bufferSize` is negative, the buffer growth strategy used is _Geometric Growth_; otherwise it is *Constant Growth*. (See the component level documentation for further details.) In either case, the new buffer will have sufficient capacity to satisfy the request. If _Geometric Growth_ is in effect, no limit is imposed on the size of buffers. == Parameters [cols="1,4"] |=== | Name| Description | *buffer* | The external buffer used for initial allocations. | *bufferSize* | The size (in bytes) of `buffer`. | *basicAllocator* | The allocator used to supply memory. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#