BloombergLP::bsltf::NonOptionalAllocTestType

Unconstrained value-semantic test type that allocates with bslma::Allocator.

Synopsis

Declared in <bsltf_nonoptionalalloctesttype.h>

class NonOptionalAllocTestType;

Description

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.

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 do not have the same value.
operator==Return true if the specified lhs and rhs have the same value.