[#BloombergLP-bdld-DatumUdt]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::DatumUdt
:relfileprefix: ../../
:mrdocs:

This class provides a type to represent a pointer to an object of some user&hyphen;defined type and an integer value denoting what actual type is represented&period;

== Synopsis

Declared in `&lt;bdld&lowbar;datumudt&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class DatumUdt;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdld/DatumUdt/2constructor.adoc[`DatumUdt`]         [.small]#[constructor]#
| Create a `DatumUdt` object having the specified `data` and `type`&period;
| xref:BloombergLP/bdld/DatumUdt/data.adoc[`data`] 
| Return the pointer to the user&hyphen;defined object&period;
| xref:BloombergLP/bdld/DatumUdt/print.adoc[`print`] 
| Write the value of this object to the specified output `stream` in a human&hyphen;readable format, and return a reference to the modifyable `stream`&period;
| xref:BloombergLP/bdld/DatumUdt/type.adoc[`type`] 
| Return the type of the user&hyphen;defined object&period;
| xref:BloombergLP/bdld/DatumUdt/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;DatumUdt, HasPrintMethod&gt;`] 
| `DatumUdt` is trivially copyable&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdld/operator_not_eq-0e.adoc[`operator!&equals;`]
| Return `true` if the specified `lhs` and `rhs` have different values, and `false` otherwise&period;
| xref:BloombergLP/bdld/operator_lt-09e.adoc[`operator&lt;`]
| Return `true` if value of the specified `lhs` is less than value of the specified `rhs` and `false` otherwise&period;
| xref:BloombergLP/bdld/operator_le-0b.adoc[`operator&lt;&equals;`]
| Return `true` if value of the specified `lhs` is less than or equal to value of the specified `rhs` and `false` otherwise&period;
| xref:BloombergLP/bdld/operator_eq-001.adoc[`operator&equals;&equals;`]
| Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise&period;
| xref:BloombergLP/bdld/operator_gt-07.adoc[`operator&gt;`]
| Return `true` if value of the specified `lhs` is greater than value of the specified `rhs` and `false` otherwise&period;
| xref:BloombergLP/bdld/operator_ge-06.adoc[`operator&gt;&equals;`]
| Return `true` if value of the specified `lhs` is greater than or equal to value of the specified `rhs` and `false` otherwise&period;
|===


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