[#BloombergLP-bdlar-ChoiceConstRef-2constructor-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/ChoiceConstRef.adoc[ChoiceConstRef]::ChoiceConstRef :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlar_choiceref.h>` Create `ChoiceConstRef` object that wraps the same object as the specified `object`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlar/ChoiceConstRef/2constructor-0f.adoc[ChoiceConstRef](xref:BloombergLP/bdlar/ChoiceRef.adoc[ChoiceRef] const& object); ---- [.small]#xref:BloombergLP/bdlar/ChoiceConstRef/2constructor-0f.adoc[_» more..._]# Create `ChoiceConstRef` object. The behaviour is undefined unless `objectAddress` and `vtable` point to the valid objects. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlar/ChoiceConstRef/2constructor-05.adoc[ChoiceConstRef]( void const* objectAddress, xref:BloombergLP/bdlar/ChoiceConstVtable.adoc[ChoiceConstVtable] const* vtable); ---- [.small]#xref:BloombergLP/bdlar/ChoiceConstRef/2constructor-05.adoc[_» more..._]# Create `ChoiceConstRef` object that type erases the supplied `choice` object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_CHOICE> explicit xref:BloombergLP/bdlar/ChoiceConstRef/2constructor-02.adoc[ChoiceConstRef]( t_CHOICE const& choice, void* = 0) requires IsChoice<t_CHOICE>::value; ---- [.small]#xref:BloombergLP/bdlar/ChoiceConstRef/2constructor-02.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#