[#BloombergLP-balst-StackTraceTestAllocator-setName]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balst.adoc[balst]::xref:BloombergLP/balst/StackTraceTestAllocator.adoc[StackTraceTestAllocator]::setName
:relfileprefix: ../../../
:mrdocs:

Set the name of this allocator to the specified `name`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setName(char const* name);
----

== Description

If `setName` is never called, the name of the allocator is &quot;&lt;unnamed&gt;&quot;&period; Note that the lifetime of `name` must exceed the lifetime of this object&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| null&hyphen;terminated allocator name&semi; must outlive this object
|===


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