[#BloombergLP-balst-StackTrace-resize]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balst.adoc[balst]::xref:BloombergLP/balst/StackTrace.adoc[StackTrace]::resize
:relfileprefix: ../../../
:mrdocs:

Resize this stack&hyphen;trace so that `length() &equals;&equals; newLength`&period;

== Synopsis

Declared in `&lt;balst&lowbar;stacktrace&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
resize(int newLength);
----

== Description

Add default constructed stack&hyphen;trace frames to, or remove stack&hyphen;trace frames from, the end of this stack&hyphen;trace object such that, after the operation, `length() &equals;&equals; newLength`&period; Stack trace frames whose indices are in the range `0 &lt;&equals; index &lt; min(length, newLength)` will be unchanged&period; The behavior is undefined unless `0 &lt;&equals; newLength`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *newLength*
| new number of stack&hyphen;trace frames
|===


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