BloombergLP::bdlma::InfrequentDeleteBlockList::allocate

Return the address of a contiguous block of memory of the specified size.

Synopsis

Declared in <bdlma_infrequentdeleteblocklist.h>

void*
allocate(bsls::Types::size_type size);

Description

Return the address of a contiguous block of memory of the specified size (in bytes). If size is 0, no memory is allocated and 0 is returned. The returned memory is guaranteed to be maximally aligned.

Return Value

address of a contiguous block of size bytes, or 0 if size is 0

Parameters

NameDescription
sizesize in bytes of the memory block to allocate