[#BloombergLP-bslma-SequentialAllocator-allocateAndExpand-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/SequentialAllocator.adoc[SequentialAllocator]::allocateAndExpand
:relfileprefix: ../../../
:mrdocs:

Return memory of at least the specified `&ast;size`&period;

== Synopsis

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

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

== Description

Return memory of at least the specified `&ast;size` and return the actual amount of memory allocated in `&ast;size`&period; If `&ast;size` is 0, no memory is allocated and 0 is returned&period; The behavior is undefined unless `0 &lt;&equals; &ast;size`&period;

== Return Value

The address of the allocated memory block&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *size*
| The requested size (in&sol;out)&semi; updated with the actual size&period;
|===


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