Create a limited record buffer with the specified maxTotalSize.
Synopsis
Declared in <ball_fixedsizerecordbuffer.h>
FixedSizeRecordBuffer(
int maxTotalSize,
bslma::Allocator* basicAllocator = 0);
Description
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. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless maxTotalSize > 0.
Parameters
Name |
Description |
maxTotalSize |
upper bound on total size of records plus overhead |
basicAllocator |
memory allocator; null uses the default |
Created with MrDocs