[#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 `<bslma_sequentialpool.h>` Return memory of at least the specified `*size` and return the actual amount of memory allocated in `*size`. If `*size` is 0, no memory is allocated and 0 is returned. The behavior is undefined unless `0 <= *size`. [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..._]# Return memory of at least the specified `*size` and at most the specified `maxNumBytes`. Also return the actual amount of memory allocated in `*size`. If `*size` is 0, no memory is allocated and 0 is returned. The behavior is undefined unless `0 <= *size <= maxNumBytes`. [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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#