[#BloombergLP-bslma-SequentialPool-truncate]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/SequentialPool.adoc[SequentialPool]::truncate
:relfileprefix: ../../../
:mrdocs:

Reduce the amount of memory allocated at the specified `address` from the specified `originalNumBytes` to the specified `newNumBytes`&period; Return the amount of memory available at `address` after the truncation&period; The behavior is undefined unless the call to this allocator that provided the `address` was performed with the `originalNumBytes` and `newNumBytes &lt;&equals; originalNumBytes`&period; Note that this function will not truncate the memory unless there have been no allocations since the allocation for `originalNumBytes`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
truncate(
    void* address,
    int originalNumBytes,
    int newNumBytes);
----


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