[#BloombergLP-balst-StackTrace-2constructor-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balst.adoc[balst]::xref:BloombergLP/balst/StackTrace.adoc[StackTrace]::StackTrace :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<balst_stacktrace.h>` Create an empty `StackTrace` object (having a length of 0). Optionally specify `basicAllocator` used to supply memory. If `basicAllocator` is 0, then an owned heap‐bypass allocator object is used. Note that the heap‐bypass allocator is used by default to avoid heap allocation in situations where the heap may have been corrupted. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/balst/StackTrace/2constructor-0d.adoc[StackTrace](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/balst/StackTrace/2constructor-0d.adoc[_» more..._]# Create a `StackTrace` object having the same value as the specified `original` object. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, then an owned heap‐bypass allocator object is used. Note that the heap‐bypass allocator is used by default to avoid heap allocation in situations where the heap may have been corrupted. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balst/StackTrace/2constructor-09.adoc[StackTrace]( xref:BloombergLP/balst/StackTrace.adoc[StackTrace] const& original, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/balst/StackTrace/2constructor-09.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#