[#BloombergLP-ball-ScopedAttribute-2constructor-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/ScopedAttribute.adoc[ScopedAttribute]::ScopedAttribute
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;ball&lowbar;scopedattribute&period;h&gt;`

Same as the preceding overload, using the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/ScopedAttribute/2constructor-033.adoc[ScopedAttribute](
    char const* name,
    xref:BloombergLP/bdlb/Guid.adoc[bdlb::Guid] value,
    xref:BloombergLP/ball/ScopedAttribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/ScopedAttribute/2constructor-033.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/ScopedAttribute/2constructor-0fa.adoc[ScopedAttribute](
    char const* name,
    int value,
    xref:BloombergLP/ball/ScopedAttribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/ScopedAttribute/2constructor-0fa.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/ScopedAttribute/2constructor-0f2.adoc[ScopedAttribute](
    char const* name,
    long value,
    xref:BloombergLP/ball/ScopedAttribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/ScopedAttribute/2constructor-0f2.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/ScopedAttribute/2constructor-0ed.adoc[ScopedAttribute](
    char const* name,
    long long value,
    xref:BloombergLP/ball/ScopedAttribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/ScopedAttribute/2constructor-0ed.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/ScopedAttribute/2constructor-039.adoc[ScopedAttribute](
    char const* name,
    unsigned int value,
    xref:BloombergLP/ball/ScopedAttribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/ScopedAttribute/2constructor-039.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/ScopedAttribute/2constructor-0e7.adoc[ScopedAttribute](
    char const* name,
    unsigned long value,
    xref:BloombergLP/ball/ScopedAttribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/ScopedAttribute/2constructor-0e7.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/ScopedAttribute/2constructor-04.adoc[ScopedAttribute](
    char const* name,
    unsigned long long value,
    xref:BloombergLP/ball/ScopedAttribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/ScopedAttribute/2constructor-04.adoc[_» more&period;&period;&period;_]#

Set BALL logging attributes for the current thread for the scope of this object, associating the specified `name` with the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/ScopedAttribute/2constructor-05.adoc[ScopedAttribute](
    char const* name,
    std::string&lowbar;view const& value,
    xref:BloombergLP/ball/ScopedAttribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/ScopedAttribute/2constructor-05.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/ScopedAttribute/2constructor-06.adoc[ScopedAttribute](
    char const* name,
    char const* value,
    xref:BloombergLP/ball/ScopedAttribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/ScopedAttribute/2constructor-06.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/ScopedAttribute/2constructor-032.adoc[ScopedAttribute](
    char const* name,
    void const* value,
    xref:BloombergLP/ball/ScopedAttribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/ScopedAttribute/2constructor-032.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| literal attribute name
| *value*
| GUID attribute value
| *allocator*
| allocator used to supply memory
|===


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