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

Create a `StackTracePrinter` object that will, if streamed, render a description of the current call stack to the stream&period; Optionally specify `maxFrames` indicating maximum number of frames to dispay&period; If `maxFrames` is &hyphen;1 or unspecified, use a value of at least 1024&period; The optionally specified `demanglingPreferredFlag` determines whether demangling occurs, on platforms where demangling is available and optional&period; Optionally specify `additionalIgnoreFrames` which is added to `bsls&colon;&colon;StackAddressUtil&colon;&colon;k&lowbar;IGNORE&lowbar;FRAMES` to ignore the topmost frames of the caller&period; Return a reference to `stream`&period; The behavior is undefined unless `&hyphen;1 &equals;&equals; maxFrames` or `0 &lt;&equals; maxFrames`, and unless `0 &lt;&equals; additionalIgnoreFrames`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
StackTracePrinter(
    int maxFrames = &hyphen;1,
    bool demanglingPreferredFlag = true,
    int additionalIgnoreFrames = 0);
----


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