expand overloads

Synopses

Declared in <bslma_sequentialallocator.h>

Expand the memory block at the specified address.

int
expand(
    void* address,
    int originalNumBytes);

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

int
expand(
    void* address,
    int originalNumBytes,
    int maxNumBytes);

Return Value

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

Parameters

Name

Description

address

The address of the memory block to expand.

originalNumBytes

The original allocation size (in bytes).

maxNumBytes

The maximum expanded size (in bytes).

Created with MrDocs