[#BloombergLP-bsltf-NonOptionalAllocTestType] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::NonOptionalAllocTestType :relfileprefix: ../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class NonOptionalAllocTestType; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsltf/NonOptionalAllocTestType/2constructor-06c.adoc[`NonOptionalAllocTestType`] [.small]#[constructor]# | Constructors | xref:BloombergLP/bsltf/NonOptionalAllocTestType/2destructor.adoc[`~NonOptionalAllocTestType`] [.small]#[destructor]# | Destroy this object. | xref:BloombergLP/bsltf/NonOptionalAllocTestType/operator_assign.adoc[`operator=`] | Assign to this object the value of the specified `rhs` object, and return a reference providing modifiable access to this object. | xref:BloombergLP/bsltf/NonOptionalAllocTestType/allocator.adoc[`allocator`] | Return the allocator used by this object to supply memory. | xref:BloombergLP/bsltf/NonOptionalAllocTestType/data.adoc[`data`] | Return the value of the `data` attribute of this object. | xref:BloombergLP/bsltf/NonOptionalAllocTestType/setData.adoc[`setData`] | Set the `data` attribute of this object to the specified `value`. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsltf/debugprint-0d8.adoc[`debugprint`] | Same as the preceding overload for this test type. | xref:BloombergLP/bsltf/operator_not_eq-0a.adoc[`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. | xref:BloombergLP/bsltf/operator_eq-01e.adoc[`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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#