BloombergLP::ball::Attribute::Attribute

Create an Attribute object having the specified (literal) name and (character string) value.

Synopsis

Declared in <ball_attribute.h>

Attribute(
    char const* name,
    char const* value,
    allocator_type const& allocator = allocator_type());

Description

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.

Parameters

NameDescription
nameliteral attribute name
valuecharacter-string attribute value
allocatorallocator used to supply memory