Create an Attribute object having the specified (literal) name and value.
Declared in <ball_attribute.h>
Attribute(
char const* name,
Value const& value,
allocator_type const& allocator = allocator_type());
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.
| Name | Description |
|---|---|
| name | literal attribute name |
| value | attribute value variant |
| allocator | allocator used to supply memory |