allocate overloads
Synopses
Declared in <bdlma_sequentialallocator.h>
Return a newly allocated block of memory of at least size bytes.
virtual
void*
allocate(size_type size) = 0;
Return a block of memory of the specified size (in bytes).
virtual
void*
allocate(bsls::Types::size_type size) override;
[[nodiscard]]
void*
allocate(
size_t __bytes,
size_t __alignment = _S_max_align);
Return Value
-
pointer to the allocated memory, or null if
sizeis 0 -
address of a contiguous block of
sizebytes, or 0 ifsizeis 0
Parameters
Name |
Description |
size |
number of bytes to allocate |
Created with MrDocs