[#BloombergLP-bslma-SequentialAllocator-allocateAndExpand-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/SequentialAllocator.adoc[SequentialAllocator]::allocateAndExpand :relfileprefix: ../../../ :mrdocs: `allocateAndExpand` overloads == Synopses Declared in `<bslma_sequentialallocator.h>` Return memory of at least the specified `*size`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void* xref:BloombergLP/bslma/SequentialAllocator/allocateAndExpand-05.adoc[allocateAndExpand](int* size); ---- [.small]#xref:BloombergLP/bslma/SequentialAllocator/allocateAndExpand-05.adoc[_» more..._]# Return memory of at least the specified `*size` and at most `maxNumBytes`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void* xref:BloombergLP/bslma/SequentialAllocator/allocateAndExpand-06.adoc[allocateAndExpand]( int* size, int maxNumBytes); ---- [.small]#xref:BloombergLP/bslma/SequentialAllocator/allocateAndExpand-06.adoc[_» more..._]# == Return Value The address of the allocated memory block. == Parameters [cols="1,4"] |=== | Name| Description | *size* | The requested size (in/out); updated with the actual size. | *maxNumBytes* | The maximum number of bytes to allocate. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#