[#BloombergLP-ball-ScopedAttribute_Container-2constructor-076]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/ScopedAttribute_Container.adoc[ScopedAttribute&lowbar;Container]::ScopedAttribute&lowbar;Container
:relfileprefix: ../../../
:mrdocs:

Create a BALL attribute container holding a single rule, associating the specified `name` with the specified `value`&period;

== Synopsis

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

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

== Description

Optionally specify an `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&semi; otherwise, the default allocator is used&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| literal attribute name
| *value*
| character&hyphen;string attribute value
| *allocator*
| allocator used to supply memory
|===


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