[#BloombergLP-bslma-SequentialAllocator-allocate-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/SequentialAllocator.adoc[SequentialAllocator]::allocate
:relfileprefix: ../../../
:mrdocs:

Return a newly allocated block of memory&period;

== Synopsis

Declared in `&lt;bslma&lowbar;sequentialallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void*
allocate(xref:BloombergLP/bslma/Allocator/size_type.adoc[size&lowbar;type] numBytes) override;
----

== Description

Return a newly allocated block of memory of (at least) the specified positive `numBytes` (bytes)&period; If `numBytes` is 0, a null pointer is returned with no effect&period; The behavior is undefined unless `0 &lt;&equals; numBytes`&period; Note that the alignment of the address returned is the maximum alignment for any fundamental type defined for the calling platform&period;

== Return Value

The address of the allocated memory block&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *numBytes*
| The minimum number of bytes to allocate&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
