[#BloombergLP-bslma-SequentialPool-allocate]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/SequentialPool.adoc[SequentialPool]::allocate
:relfileprefix: ../../../
:mrdocs:

Return memory of the specified `size`&period; If `size` is 0, no memory is allocated and 0 is returned&period; The behavior is undefined unless `0 &lt;&equals; size`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void*
allocate(int size);
----

== Return Value

The address of the allocated memory block&period;

== Parameters

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


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