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