BloombergLP::bsltf::NonTypicalOverloadsTestType

Value-semantic test type that asserts on non-typical operator overloads.

Synopsis

Declared in <bsltf_nontypicaloverloadstesttype.h>

class NonTypicalOverloadsTestType;

Description

This unconstrained (value-semantic) attribute class ensures that the operator new member and operator delete member never gets called by overloading and asserting in them. See the Attributes section under DESCRIPTION in the component-level documentation for information on the class attributes.

Member Functions

NameDescription
NonTypicalOverloadsTestType [constructor]Constructors
~NonTypicalOverloadsTestType [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.
data Return the value of the data attribute of this object.
setData Set the data attribute of this object to the specified value.

Static Member Functions

NameDescription
operator delete Delete operators
operator new New operators

Non-Member Functions

NameDescription
debugprintSame as the preceding overload for this test type.
operator!=Return whether two objects do not have the same value.
operator==Return whether two objects have the same value.