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

Create an `Attribute` object having the specified (literal) `name` and (character string) `value`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Attribute(
    char const* name,
    char const* value,
    xref:BloombergLP/ball/Attribute/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; Note that `name` is not managed by this object and therefore must remain valid while in use by any `Attribute` object&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]#
