BloombergLP::bdlma::HeapBypassAllocator::allocate

allocate overloads

Synopses

Declared in <bdlma_heapbypassallocator.h>

Return a newly allocated block of memory of at least size bytes.

virtual
void*
allocate(size_type size) = 0;
» more...

Return a newly allocated buffer of the specified size bytes.

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

Return Value

  • pointer to the allocated memory, or null if size is 0
  • address of the newly allocated buffer, or a null pointer if size is 0

Parameters

NameDescription
sizenumber of bytes to allocate