BloombergLP::bslma::SequentialAllocator::allocateAndExpand

allocateAndExpand overloads

Synopses

Declared in <bslma_sequentialallocator.h>

Return memory of at least the specified *size.

void*
allocateAndExpand(int* size);
» more...

Return memory of at least the specified *size and at most maxNumBytes.

void*
allocateAndExpand(
    int* size,
    int maxNumBytes);
» more...

Return Value

The address of the allocated memory block.

Parameters

NameDescription
sizeThe requested size (in/out); updated with the actual size.
maxNumBytesThe maximum number of bytes to allocate.