This class provides a scoped guard that sets a single BALL attribute in the current thread.

Synopsis

Declared in <ball_scopedattribute.h>

class ScopedAttribute;

Type Aliases

Name

Description

allocator_type

allocator_type is an alias for the type of allocator used by this class.

Member Functions

Name

Description

ScopedAttribute [constructor]

Constructors

~ScopedAttribute [destructor]

Remove the attributes managed by this object from the BALL system, and destroy this object.

get_allocator

Return the allocator used by this object to supply memory. Note that if no allocator was supplied at construction the default allocator in effect at construction is used.

operator BloombergLP::bslmf::NestedTraitDeclaration<ScopedAttribute, UsesBslmaAllocator>

Declare that this type uses a bslma allocator.

Created with MrDocs