[#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 `<ball_managedattribute.h>` Create a `ManagedAttribute` object having the value of the specified `attribute`. Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the default allocator is used. [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_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-04.adoc[_» more..._]# Create a `ManagedAttribute` object having the same value as the specified `original` object. Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the default allocator is used. [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_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-06.adoc[_» more..._]# Create a `ManagedAttribute` object having the specified `name` and `value`. Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the default allocator is used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/ManagedAttribute/2constructor-0a.adoc[ManagedAttribute]( std::string_view const& name, int value, xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-0a.adoc[_» more..._]# Same as the preceding overload, using the specified `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/ManagedAttribute/2constructor-0db.adoc[ManagedAttribute]( std::string_view const& name, long value, xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-0db.adoc[_» more..._]# Same as the preceding overload, using the specified `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/ManagedAttribute/2constructor-00.adoc[ManagedAttribute]( std::string_view const& name, long long value, xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-00.adoc[_» more..._]# Same as the preceding overload, using the specified `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/ManagedAttribute/2constructor-0d4.adoc[ManagedAttribute]( std::string_view const& name, unsigned int value, xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-0d4.adoc[_» more..._]# Same as the preceding overload, using the specified `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/ManagedAttribute/2constructor-092.adoc[ManagedAttribute]( std::string_view const& name, unsigned long value, xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-092.adoc[_» more..._]# Same as the preceding overload, using the specified `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/ManagedAttribute/2constructor-090.adoc[ManagedAttribute]( std::string_view const& name, unsigned long long value, xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-090.adoc[_» more..._]# Create a `ManagedAttribute` object having the specified `name` and `value`. Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the default allocator is used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/ManagedAttribute/2constructor-0f.adoc[ManagedAttribute]( std::string_view const& name, xref:BloombergLP/ball/Attribute/Value-01.adoc[Attribute::Value] const& value, xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-0f.adoc[_» more..._]# Create a `ManagedAttribute` object having the specified `name` and string `value`. Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the default allocator is used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/ManagedAttribute/2constructor-01.adoc[ManagedAttribute]( std::string_view const& name, std::string_view const& value, xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-01.adoc[_» more..._]# Create a `ManagedAttribute` object having the specified `name` and the C‐style `value` string. Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the default allocator is used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/ManagedAttribute/2constructor-0dd.adoc[ManagedAttribute]( std::string_view const& name, char const* value, xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-0dd.adoc[_» more..._]# Create a `ManagedAttribute` object having the specified `name` and the pointer to the specified `value` of cv‐qualified `void` type. Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the default allocator is used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/ManagedAttribute/2constructor-02.adoc[ManagedAttribute]( std::string_view const& name, void const* value, xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/ManagedAttribute/2constructor-02.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#