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

This union provides a union test type to facilitate testing of templates&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
union UnionTestType;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsltf/UnionTestType/2constructor-02.adoc[`UnionTestType`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bsltf/UnionTestType/2destructor.adoc[`&#126;UnionTestType`] [.small]#[destructor]#
| Destroy this object&period;
| xref:BloombergLP/bsltf/UnionTestType/data.adoc[`data`] 
| Return the value of the `data` attribute of this object&period;
| xref:BloombergLP/bsltf/UnionTestType/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-068.adoc[`debugprint`]
| Same as the preceding overload for this test type&period;
| xref:BloombergLP/bsltf/operator_not_eq-074.adoc[`operator!&equals;`]
| Return `true` if the specified `lhs` and `rhs` objects do not have the same value, and `false` otherwise&period; Two `UnionTestType` objects do not have the same value if their `data` attributes are not the same&period;
| xref:BloombergLP/bsltf/operator_eq-072.adoc[`operator&equals;&equals;`]
| Return `true` if the specified `lhs` and `rhs` unions have the same value, and `false` otherwise&period; Two `UnionTestType` objects have the same if their `data` attributes are the same&period;
|===


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