BloombergLP::ball::CountingAllocator::allocate

Allocate a maximally aligned block of the specified size.

Synopses

Declared in <ball_countingallocator.h>

Allocate a maximally aligned block of the specified size.

virtual
void*
allocate(size_type size) override;
» more...
[[nodiscard]]
void*
allocate(
    size_t __bytes,
    size_t __alignment = _S_max_align);
» more...

Return Value

newly allocated maximally aligned block of at least size bytes

Parameters

NameDescription
sizenumber of bytes to allocate