BloombergLP::bslma::SequentialAllocator::expand

expand overloads

Synopses

Declared in <bslma_sequentialallocator.h>

Expand the memory block at the specified address.

int
expand(
    void* address,
    int originalNumBytes);
» more...

Expand the memory block at the specified address up to maxNumBytes.

int
expand(
    void* address,
    int originalNumBytes,
    int maxNumBytes);
» more...

Return Value

The amount of memory available after expansion (in bytes).

Parameters

NameDescription
addressThe address of the memory block to expand.
originalNumBytesThe original allocation size (in bytes).
maxNumBytesThe maximum expanded size (in bytes).