[#BloombergLP-ball-ManagedAttribute-2constructor-0d1]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/ManagedAttribute.adoc[ManagedAttribute]::ManagedAttribute
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Create a `ManagedAttribute` object having the value of the specified `attribute`&period;


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

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

Create a `ManagedAttribute` object having the same value as the specified `original` object&period;


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

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

Create a `ManagedAttribute` object having the specified `name` and `value`&period;


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

[.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-0a.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/ManagedAttribute/2constructor-0db.adoc[ManagedAttribute](
    std::string&lowbar;view const& name,
    long value,
    xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-0db.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/ManagedAttribute/2constructor-00.adoc[ManagedAttribute](
    std::string&lowbar;view const& name,
    long long value,
    xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-00.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/ManagedAttribute/2constructor-0d4.adoc[ManagedAttribute](
    std::string&lowbar;view const& name,
    unsigned int value,
    xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-0d4.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/ManagedAttribute/2constructor-092.adoc[ManagedAttribute](
    std::string&lowbar;view const& name,
    unsigned long value,
    xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-092.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/ManagedAttribute/2constructor-090.adoc[ManagedAttribute](
    std::string&lowbar;view const& name,
    unsigned long long value,
    xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

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

Create a `ManagedAttribute` object having the specified `name` and `value`&period;


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

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

Create a `ManagedAttribute` object having the specified `name` and string `value`&period;


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

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

Create a `ManagedAttribute` object having the specified `name` and the C&hyphen;style `value` string&period;


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

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

Create a `ManagedAttribute` object having the specified `name` and the pointer to the specified `value` of cv&hyphen;qualified `void` type&period;


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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *attribute*
| attribute to copy
| *allocator*
| allocator used to supply memory
| *original*
| managed attribute to copy
| *name*
| attribute name
| *value*
| integer attribute value
|===


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