BloombergLP::bslma::SequentialPool::allocateAndExpand

allocateAndExpand overloads

Synopses

Declared in <bslma_sequentialpool.h>

Return memory of at least the specified *size and return the actual amount of memory allocated in *size. If *size is 0, no memory is allocated and 0 is returned. The behavior is undefined unless 0 <= *size.

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

Return memory of at least the specified *size and at most the specified maxNumBytes. Also return the actual amount of memory allocated in *size. If *size is 0, no memory is allocated and 0 is returned. The behavior is undefined unless 0 <= *size <= maxNumBytes.

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