[#BloombergLP-bdld-Datum-createUdt] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/Datum.adoc[Datum]::createUdt :relfileprefix: ../../../ :mrdocs: Return a datum holding a user‐defined type reference. == Synopsis Declared in `<bdld_datum.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdld/Datum.adoc[Datum] createUdt( void* data, int type); ---- == Description Return, by value, a datum having the `DatumUdt` value with the specified `data` and the specified `type` values. The behavior is undefined unless `0 <= type <= 65535`. Note that `data` is held, not owned. Also note that the content pointed to by `data` object is not copied. == Return Value a datum holding a user‐defined type reference == Parameters [cols="1,4"] |=== | Name| Description | *data* | pointer to the user‐defined object | *type* | user‐defined type discriminator in `[0, 65535]` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#