[#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 `<ball_attribute.h>` Create an `Attribute` object having the same (literal) name and attribute 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/Attribute/2constructor-0c.adoc[Attribute]( xref:BloombergLP/ball/Attribute.adoc[Attribute] const& original, xref:BloombergLP/ball/Attribute/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/Attribute/2constructor-0c.adoc[_» more..._]# Same as the preceding overload, using the specified `value`. [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_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/Attribute/2constructor-081.adoc[_» more..._]# Create an `Attribute` object having the specified (literal) `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. Note that `name` is not managed by this object and therefore must remain valid while in use by any `Attribute` object. [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_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/Attribute/2constructor-0be.adoc[_» more..._]# Same as the preceding overload, using the specified `value`. [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_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/Attribute/2constructor-01.adoc[_» more..._]# Same as the preceding overload, using the specified `value`. [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_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/Attribute/2constructor-0bf.adoc[_» more..._]# Same as the preceding overload, using the specified `value`. [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_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/Attribute/2constructor-08d.adoc[_» more..._]# Same as the preceding overload, using the specified `value`. [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_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/Attribute/2constructor-09.adoc[_» more..._]# Same as the preceding overload, using the specified `value`. [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_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/Attribute/2constructor-0d.adoc[_» more..._]# Create an `Attribute` object having the specified (literal) `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. Note that `name` is not managed by this object and therefore must remain valid while in use by any `Attribute` object. [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_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/Attribute/2constructor-0b5.adoc[_» more..._]# Create an `Attribute` object having the specified (literal) `name` and (character string) `value`. Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the default allocator is used. Note that `name` is not managed by this object and therefore must remain valid while in use by any `Attribute` object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/Attribute/2constructor-0b2.adoc[Attribute]( char const* name, std::string_view const& value, xref:BloombergLP/ball/Attribute/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/Attribute/2constructor-0b2.adoc[_» more..._]# Create an `Attribute` object having the specified (literal) `name` and (character string) `value`. Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the default allocator is used. Note that `name` is not managed by this object and therefore must remain valid while in use by any `Attribute` object. [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_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/Attribute/2constructor-080.adoc[_» more..._]# Create an `Attribute` object having the specified (literal) `name` and (const‐qualified void pointer) `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/Attribute/2constructor-0a.adoc[Attribute]( char const* name, void const* value, xref:BloombergLP/ball/Attribute/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/Attribute/2constructor-0a.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#