[#BloombergLP-bslma-SequentialAllocator-expand-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/SequentialAllocator.adoc[SequentialAllocator]::expand
:relfileprefix: ../../../
:mrdocs:

`expand` overloads

== Synopses

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

Expand the memory block at the specified `address`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bslma/SequentialAllocator/expand-0c.adoc[expand](
    void* address,
    int originalNumBytes);
----

[.small]#xref:BloombergLP/bslma/SequentialAllocator/expand-0c.adoc[_» more&period;&period;&period;_]#

Expand the memory block at the specified `address` up to `maxNumBytes`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bslma/SequentialAllocator/expand-08.adoc[expand](
    void* address,
    int originalNumBytes,
    int maxNumBytes);
----

[.small]#xref:BloombergLP/bslma/SequentialAllocator/expand-08.adoc[_» more&period;&period;&period;_]#

== Return Value

The amount of memory available after expansion (in bytes)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *address*
| The address of the memory block to expand&period;
| *originalNumBytes*
| The original allocation size (in bytes)&period;
| *maxNumBytes*
| The maximum expanded size (in bytes)&period;
|===


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