[#BloombergLP-balst-StackTrace-2constructor-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balst.adoc[balst]::xref:BloombergLP/balst/StackTrace.adoc[StackTrace]::StackTrace
:relfileprefix: ../../../
:mrdocs:

Create a `StackTrace` object having the same value as the specified `original` object&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
StackTrace(
    xref:BloombergLP/balst/StackTrace.adoc[StackTrace] const& original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, then an owned heap&hyphen;bypass allocator object is used&period; Note that the heap&hyphen;bypass allocator is used by default to avoid heap allocation in situations where the heap may have been corrupted&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| object to copy
| *basicAllocator*
| memory allocator&semi; null uses heap&hyphen;bypass
|===


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