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

Constructors

== Synopses

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

Create an `Attribute` object having the same (literal) name and attribute value as the specified `original` object&period; 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;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/Attribute/2constructor-0c.adoc[Attribute](
    xref:BloombergLP/ball/Attribute.adoc[Attribute] const& original,
    xref:BloombergLP/ball/Attribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/Attribute/2constructor-0c.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/Attribute/2constructor-081.adoc[Attribute](
    char const* name,
    xref:BloombergLP/bdlb/Guid.adoc[bdlb::Guid] value,
    xref:BloombergLP/ball/Attribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

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

Create an `Attribute` object having the specified (literal) `name` and `value`&period; 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;


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

[.small]#xref:BloombergLP/ball/Attribute/2constructor-0be.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/Attribute/2constructor-01.adoc[Attribute](
    char const* name,
    long value,
    xref:BloombergLP/ball/Attribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/Attribute/2constructor-01.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/Attribute/2constructor-0bf.adoc[Attribute](
    char const* name,
    long long value,
    xref:BloombergLP/ball/Attribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/Attribute/2constructor-0bf.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/Attribute/2constructor-08d.adoc[Attribute](
    char const* name,
    unsigned int value,
    xref:BloombergLP/ball/Attribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/Attribute/2constructor-08d.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/Attribute/2constructor-09.adoc[Attribute](
    char const* name,
    unsigned long value,
    xref:BloombergLP/ball/Attribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/Attribute/2constructor-09.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/Attribute/2constructor-0d.adoc[Attribute](
    char const* name,
    unsigned long long value,
    xref:BloombergLP/ball/Attribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

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

Create an `Attribute` object having the specified (literal) `name` and `value`&period; 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;


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

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

Create an `Attribute` object having the specified (literal) `name` and (character string) `value`&period; 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;


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

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

Create an `Attribute` object having the specified (literal) `name` and (character string) `value`&period; 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;


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

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

Create an `Attribute` object having the specified (literal) `name` and (const&hyphen;qualified void pointer) `value`&period; 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;


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

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


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