Create an Attribute object having the specified (literal) name and (character string) value.
Synopsis
Declared in <ball_attribute.h>
Attribute(
char const* name,
std::string_view 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
Name |
Description |
name |
literal attribute name |
value |
character‐string attribute value |
allocator |
allocator used to supply memory |
Created with MrDocs