[#BloombergLP-bdlar-EnumRef-2constructor-0f2]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/EnumRef.adoc[EnumRef]::EnumRef
:relfileprefix: ../../../
:mrdocs:

Create an `EnumRef` object&period; The behaviour is undefined unless `objectAddress` and `vtable` point to the valid objects&period;

== Synopsis

Declared in `&lt;bdlar&lowbar;enumref&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
EnumRef(
    void* objectAddress,
    xref:BloombergLP/bdlar/EnumVtable.adoc[EnumVtable] const* vtable);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *objectAddress*
| address of the enumeration object to wrap
| *vtable*
| pointer to the vtable for the enumeration type
|===


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