[#BloombergLP-bdlma-SequentialAllocator-2constructor-0df] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/SequentialAllocator.adoc[SequentialAllocator]::SequentialAllocator :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlma_sequentialallocator.h>` Create a sequential allocator whose initial buffer has the specified `initialSize`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlma/SequentialAllocator/2constructor-092.adoc[SequentialAllocator](int initialSize); ---- [.small]#xref:BloombergLP/bdlma/SequentialAllocator/2constructor-092.adoc[_» more..._]# Create a sequential allocator that allocates from dynamically allocated buffers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlma/SequentialAllocator/2constructor-094.adoc[SequentialAllocator](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/SequentialAllocator/2constructor-094.adoc[_» more..._]# Create a sequential allocator using the specified alignment strategy. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlma/SequentialAllocator/2constructor-0c1.adoc[SequentialAllocator]( xref:BloombergLP/bsls/Alignment/Strategy.adoc[bsls::Alignment::Strategy] alignmentStrategy, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/SequentialAllocator/2constructor-0c1.adoc[_» more..._]# Create a sequential allocator using the specified growth strategy. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlma/SequentialAllocator/2constructor-040.adoc[SequentialAllocator]( xref:BloombergLP/bsls/BlockGrowth/Strategy.adoc[bsls::BlockGrowth::Strategy] growthStrategy, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/SequentialAllocator/2constructor-040.adoc[_» more..._]# Create a sequential allocator whose initial buffer has the specified `initialSize`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlma/SequentialAllocator/2constructor-0f.adoc[SequentialAllocator]( xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] initialSize, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/SequentialAllocator/2constructor-0f.adoc[_» more..._]# Create a sequential allocator using the specified growth and alignment strategies. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlma/SequentialAllocator/2constructor-0d5.adoc[SequentialAllocator]( xref:BloombergLP/bsls/BlockGrowth/Strategy.adoc[bsls::BlockGrowth::Strategy] growthStrategy, xref:BloombergLP/bsls/Alignment/Strategy.adoc[bsls::Alignment::Strategy] alignmentStrategy, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/SequentialAllocator/2constructor-0d5.adoc[_» more..._]# Create a sequential allocator whose initial buffer has the specified `initialSize` and alignment strategy. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlma/SequentialAllocator/2constructor-08.adoc[SequentialAllocator]( xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] initialSize, xref:BloombergLP/bsls/Alignment/Strategy.adoc[bsls::Alignment::Strategy] alignmentStrategy, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/SequentialAllocator/2constructor-08.adoc[_» more..._]# Create a sequential allocator whose initial buffer has the specified `initialSize` and growth strategy. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlma/SequentialAllocator/2constructor-045.adoc[SequentialAllocator]( xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] initialSize, xref:BloombergLP/bsls/BlockGrowth/Strategy.adoc[bsls::BlockGrowth::Strategy] growthStrategy, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/SequentialAllocator/2constructor-045.adoc[_» more..._]# Create a sequential allocator with growth limited to `maxBufferSize`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlma/SequentialAllocator/2constructor-00.adoc[SequentialAllocator]( xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] initialSize, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] maxBufferSize, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/SequentialAllocator/2constructor-00.adoc[_» more..._]# Create a sequential allocator whose initial buffer has the specified `initialSize`, growth strategy, and alignment strategy. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlma/SequentialAllocator/2constructor-03.adoc[SequentialAllocator]( xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] initialSize, xref:BloombergLP/bsls/BlockGrowth/Strategy.adoc[bsls::BlockGrowth::Strategy] growthStrategy, xref:BloombergLP/bsls/Alignment/Strategy.adoc[bsls::Alignment::Strategy] alignmentStrategy, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/SequentialAllocator/2constructor-03.adoc[_» more..._]# Create a sequential allocator with growth limited to `maxBufferSize` and the specified alignment strategy. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlma/SequentialAllocator/2constructor-0b.adoc[SequentialAllocator]( xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] initialSize, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] maxBufferSize, xref:BloombergLP/bsls/Alignment/Strategy.adoc[bsls::Alignment::Strategy] alignmentStrategy, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/SequentialAllocator/2constructor-0b.adoc[_» more..._]# Create a sequential allocator with growth limited to `maxBufferSize` and the specified growth strategy. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlma/SequentialAllocator/2constructor-0a.adoc[SequentialAllocator]( xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] initialSize, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] maxBufferSize, xref:BloombergLP/bsls/BlockGrowth/Strategy.adoc[bsls::BlockGrowth::Strategy] growthStrategy, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/SequentialAllocator/2constructor-0a.adoc[_» more..._]# Create a sequential allocator with growth limited to `maxBufferSize` and the specified growth and alignment strategies. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlma/SequentialAllocator/2constructor-0c8.adoc[SequentialAllocator]( xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] initialSize, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] maxBufferSize, xref:BloombergLP/bsls/BlockGrowth/Strategy.adoc[bsls::BlockGrowth::Strategy] growthStrategy, xref:BloombergLP/bsls/Alignment/Strategy.adoc[bsls::Alignment::Strategy] alignmentStrategy, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/SequentialAllocator/2constructor-0c8.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *initialSize* | initial size, in bytes, of the internal buffer | *basicAllocator* | memory allocator; null uses the default | *alignmentStrategy* | strategy used to align allocated memory blocks | *growthStrategy* | strategy controlling growth of internal buffers | *maxBufferSize* | maximum dynamically allocated buffer size in bytes |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#