BloombergLP::bslma::InfrequentDeleteBlockList::allocate

Allocate a memory block of the specified size and return its address.

Synopsis

Declared in <bslma_infrequentdeleteblocklist.h>

void*
allocate(int numBytes);

Description

Allocate a memory block of the specified numBytes size and return its address. The returned memory is guaranteed to be maximally aligned. The behavior is undefined unless 0 <= numBytes.

Return Value

address of the allocated, maximally aligned memory block

Parameters

NameDescription
numBytessize in bytes of the memory block to allocate