[#BloombergLP-bdlar-EnumConstRef-2constructor-06] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/EnumConstRef.adoc[EnumConstRef]::EnumConstRef :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlar_enumref.h>` Create an `EnumConstRef` object that wraps the same object as the specified `object`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlar/EnumConstRef/2constructor-04.adoc[EnumConstRef](xref:BloombergLP/bdlar/EnumRef.adoc[EnumRef] const& object); ---- [.small]#xref:BloombergLP/bdlar/EnumConstRef/2constructor-04.adoc[_» more..._]# Create an `EnumConstRef` object. The behaviour is undefined unless `objectAddress` and `vtable` point to the valid objects. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlar/EnumConstRef/2constructor-0a.adoc[EnumConstRef]( void const* objectAddress, xref:BloombergLP/bdlar/EnumConstVtable.adoc[EnumConstVtable] const* vtable); ---- [.small]#xref:BloombergLP/bdlar/EnumConstRef/2constructor-0a.adoc[_» more..._]# Create an `EnumConstRef` object that type erases the supplied `enumeration` object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_ENUM> explicit xref:BloombergLP/bdlar/EnumConstRef/2constructor-01.adoc[EnumConstRef]( t_ENUM const& enumeration, void* = 0) requires IsEnum<t_ENUM>::value; ---- [.small]#xref:BloombergLP/bdlar/EnumConstRef/2constructor-01.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#