Allocate a block of memory of at least the specified size bytes.
Synopses
Declared in <bslma_newdeleteallocator.h>
Allocate a block of memory of at least the specified size bytes.
virtual
void*
allocate(size_type size) override;
[[nodiscard]]
void*
allocate(
size_t __bytes,
size_t __alignment = _S_max_align);
Return Value
newly allocated memory block, or null if size is 0
Parameters
Name |
Description |
size |
number of bytes to allocate |
Created with MrDocs