[#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‐defined type and an integer value denoting what actual type is represented. == Synopsis Declared in `<bdld_datumudt.h>` [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`. Note that the pointer to the `data` is just copied bitwise. Also note that the memory pointed by `data` is never accessed by a `DatumUdt` object. | xref:BloombergLP/bdld/DatumUdt/data.adoc[`data`] | Return the pointer to the user‐defined object. | xref:BloombergLP/bdld/DatumUdt/print.adoc[`print`] | Write the value of this object to the specified output `stream` in a human‐readable format, and return a reference to the modifyable `stream`. Optionally specify an initial indentation `level`, whose absolute value is incremented recursively for nested objects. If `level` is specified, optionally specify `spacesPerLevel`, whose absolute value indicates the number of spaces per indentation level for this and all of its nested objects. If `level` is negative, suppress indentation of the first line. If `spacesPerLevel` is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by `level`). If `stream` is not valid on entry, this operation has no effect. Note that this human‐readable format is not fully specified, and can change without notice. | xref:BloombergLP/bdld/DatumUdt/type.adoc[`type`] | Return the type of the user‐defined object. | xref:BloombergLP/bdld/DatumUdt/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<DatumUdt, HasPrintMethod>`] | `DatumUdt` is trivially copyable. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdld/operator_not_eq-0e.adoc[`operator!=`] | Return `true` if the specified `lhs` and `rhs` have different values, and `false` otherwise. Two `DatumUdt` objects have different values if they have different data or type values. | xref:BloombergLP/bdld/operator_lt-09e.adoc[`operator<`] | Return `true` if value of the specified `lhs` is less than value of the specified `rhs` and `false` otherwise. Value of `lhs` is less than value of `rhs`, if data value of `lhs` is less than data value of `rhs`, or they have the same data value and type value of `lhs` is less than type value of `rhs`. | xref:BloombergLP/bdld/operator_le-0b.adoc[`operator<=`] | Return `true` if value of the specified `lhs` is less than or equal to value of the specified `rhs` and `false` otherwise. Value of `lhs` is less than or equal to value of `rhs`, if data value of `lhs` is less than or equal to data value of `rhs`, or they have the same data value and type value of `lhs` is less than or equal to type value of `rhs`. | xref:BloombergLP/bdld/operator_eq-001.adoc[`operator==`] | Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise. Two `DatumUdt` objects have the same value if they have the same data and type values. | xref:BloombergLP/bdld/operator_gt-07.adoc[`operator>`] | Return `true` if value of the specified `lhs` is greater than value of the specified `rhs` and `false` otherwise. Value of `lhs` is greater than value of `rhs`, if data value of `lhs` is greater than data value of `rhs`, or they have the same data value and type value of `lhs` is greater than type value of `rhs`. | xref:BloombergLP/bdld/operator_ge-06.adoc[`operator>=`] | Return `true` if value of the specified `lhs` is greater than or equal to value of the specified `rhs` and `false` otherwise. Value of `lhs` is greater than or equal to value of `rhs`, if data value of `lhs` is greater than or equal to data value of `rhs`, or they have the same data value and type value of `lhs` is greater than or equal to type value of `rhs`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#