[#BloombergLP-ball-FixedSizeRecordBuffer-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/FixedSizeRecordBuffer.adoc[FixedSizeRecordBuffer]::FixedSizeRecordBuffer
:relfileprefix: ../../../
:mrdocs:

Create a limited record buffer such that at any time the sum of sizes of all records contained _plus_ the amount of memory allocated by this object is guaranteed to be less than or equal to the specified `maxTotalSize`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The behavior is undefined unless `maxTotalSize &gt; 0`&period;

== Synopsis

Declared in `&lt;ball&lowbar;fixedsizerecordbuffer&period;h&gt;`

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


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