Return memory of the specified size. If size is 0, no memory is allocated and 0 is returned. The behavior is undefined unless 0 <= size.

Synopsis

Declared in <bslma_sequentialpool.h>

void*
allocate(int size);

Return Value

The address of the allocated memory block.

Parameters

Name

Description

size

The number of bytes to allocate.

Created with MrDocs