[#BloombergLP-bslma-SequentialAllocator-2constructor-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/SequentialAllocator.adoc[SequentialAllocator]::SequentialAllocator :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bslma_sequentialallocator.h>` Create a sequential allocator using an internal buffer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bslma/SequentialAllocator/2constructor-0ea.adoc[SequentialAllocator](xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bslma/SequentialAllocator/2constructor-0ea.adoc[_» more..._]# Create a sequential allocator using an internal buffer and the specified alignment `strategy`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bslma/SequentialAllocator/2constructor-0a.adoc[SequentialAllocator]( xref:BloombergLP/bslma/BufferAllocator/AlignmentStrategy.adoc[BufferAllocator::AlignmentStrategy] strategy, xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bslma/SequentialAllocator/2constructor-0a.adoc[_» more..._]# Create a sequential allocator using an internal buffer of the specified `initialSize`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bslma/SequentialAllocator/2constructor-02.adoc[SequentialAllocator]( int initialSize, xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bslma/SequentialAllocator/2constructor-02.adoc[_» more..._]# Create a sequential allocator using an internal buffer of the specified `initialSize` and alignment `strategy`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslma/SequentialAllocator/2constructor-03.adoc[SequentialAllocator]( int initialSize, xref:BloombergLP/bslma/BufferAllocator/AlignmentStrategy.adoc[BufferAllocator::AlignmentStrategy] strategy, xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bslma/SequentialAllocator/2constructor-03.adoc[_» more..._]# Create a sequential allocator using an internal buffer with a maximum buffer size. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslma/SequentialAllocator/2constructor-0c9.adoc[SequentialAllocator]( int initialSize, int maxBufferSize, xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bslma/SequentialAllocator/2constructor-0c9.adoc[_» more..._]# Create a sequential allocator using the specified external `buffer`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslma/SequentialAllocator/2constructor-0e2.adoc[SequentialAllocator]( char* buffer, int bufferSize, xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bslma/SequentialAllocator/2constructor-0e2.adoc[_» more..._]# Create a sequential allocator using an internal buffer with a maximum buffer size and the specified alignment `strategy`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslma/SequentialAllocator/2constructor-05.adoc[SequentialAllocator]( 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/SequentialAllocator/2constructor-05.adoc[_» more..._]# Create a sequential allocator using the specified external `buffer` and alignment `strategy`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslma/SequentialAllocator/2constructor-0e3.adoc[SequentialAllocator]( 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/SequentialAllocator/2constructor-0e3.adoc[_» more..._]# Create a sequential allocator using the specified external `buffer` with a maximum buffer size. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslma/SequentialAllocator/2constructor-04.adoc[SequentialAllocator]( char* buffer, int bufferSize, int maxBufferSize, xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bslma/SequentialAllocator/2constructor-04.adoc[_» more..._]# Create a sequential allocator using the specified external `buffer`, maximum buffer size, and alignment `strategy`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslma/SequentialAllocator/2constructor-0cd.adoc[SequentialAllocator]( 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/SequentialAllocator/2constructor-0cd.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | The allocator used to supply memory. | *strategy* | The alignment strategy used for allocations. | *initialSize* | The initial internal buffer size (in bytes). | *maxBufferSize* | The maximum internal buffer size (in bytes). | *buffer* | The external buffer used for initial allocations. | *bufferSize* | The size (in bytes) of `buffer`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#