[#BloombergLP-bsltf-StdAllocTestType]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::StdAllocTestType
:relfileprefix: ../../
:mrdocs:

Unconstrained attribute class that allocates with a standard allocator&period;

== Synopsis

Declared in `&lt;bsltf&lowbar;stdalloctesttype&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOC&gt;
class StdAllocTestType;
----

== Description

This unconstrained (value&hyphen;semantic) attribute class uses a standard allocator of (template parameter) type `ALLOC` to allocate memory&period; This class does NOT define the type trait `bslma&colon;&colon;UsesBslmaAllocator`, but the trait will be `true` if `ALLOC` is convertible from `bslma&colon;&colon;Allocator &ast;` (e&period;g&period;, if it is an instantiation of `bsl&colon;&colon;allocator`)&period; This class is primarily provided to facilitate testing of templates by defining a simple type representative of user&hyphen;defined types using a standard allocator&period; See the  section for information on the class attributes&period;

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsltf/StdAllocTestType/allocator_type.adoc[`allocator&lowbar;type`] 
| Allocator type used by this test type (needed by `uses&lowbar;allocator`)&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsltf/StdAllocTestType/2constructor-0e.adoc[`StdAllocTestType`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bsltf/StdAllocTestType/2destructor.adoc[`&#126;StdAllocTestType`] [.small]#[destructor]#
| Destroy this object&period;
| xref:BloombergLP/bsltf/StdAllocTestType/operator_assign.adoc[`operator&equals;`] 
| Assign to this object the value of the specified `rhs` object, and return a reference providing modifiable access to this object&period;
| xref:BloombergLP/bsltf/StdAllocTestType/allocator.adoc[`allocator`] 
| Return the allocator used by this object to supply memory&period;
| xref:BloombergLP/bsltf/StdAllocTestType/data.adoc[`data`] 
| Return the value of the `data` attribute of this object&period;
| xref:BloombergLP/bsltf/StdAllocTestType/setData.adoc[`setData`] 
| Set the `data` attribute of this object to the specified `value`&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsltf/debugprint-0f.adoc[`debugprint`]
| Same as the preceding overload for this test type&period;
| xref:BloombergLP/bsltf/operator_not_eq-08.adoc[`operator!&equals;`]
| Return whether two objects do not have the same value&period;
| xref:BloombergLP/bsltf/operator_eq-03e7.adoc[`operator&equals;&equals;`]
| Return whether two objects have the same value&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
