[#BloombergLP-bslma-SequentialPool-allocateAndExpand-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/SequentialPool.adoc[SequentialPool]::allocateAndExpand
:relfileprefix: ../../../
:mrdocs:

`allocateAndExpand` overloads

== Synopses

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void*
xref:BloombergLP/bslma/SequentialPool/allocateAndExpand-04.adoc[allocateAndExpand](int* size);
----

[.small]#xref:BloombergLP/bslma/SequentialPool/allocateAndExpand-04.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void*
xref:BloombergLP/bslma/SequentialPool/allocateAndExpand-03.adoc[allocateAndExpand](
    int* size,
    int maxNumBytes);
----

[.small]#xref:BloombergLP/bslma/SequentialPool/allocateAndExpand-03.adoc[_» more&period;&period;&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;
| *maxNumBytes*
| The maximum number of bytes to allocate&period;
|===


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