BloombergLP::bsltf::NonOptionalAllocTestType

This unconstrained (value-semantic) attribute class that uses a bslma::Allocator to allocate memory and defines the type trait bslma::UsesBslmaAllocator. This class does not provide a default constructor.

Synopsis

Declared in <bsltf_nonoptionalalloctesttype.h>

class NonOptionalAllocTestType;

Member Functions

NameDescription
NonOptionalAllocTestType [constructor]Constructors
~NonOptionalAllocTestType [destructor]Destroy this object.
operator= Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object.
allocator Return the allocator used by this object to supply memory.
data Return the value of the data attribute of this object.
setData Set the data attribute of this object to the specified value.

Non-Member Functions

NameDescription
debugprintSame as the preceding overload for this test type.
operator!=Return true if the specified lhs and rhs objects do not have the same value, and false otherwise. Two NonOptionalAllocTestType objects do not have the same value if their data attributes are not the same.
operator==Return true if the specified lhs and rhs objects have the same value, and false otherwise. Two NonOptionalAllocTestType objects have the same if their data attributes are the same.