[#BloombergLP-bdlar-ChoiceRef-2constructor-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/ChoiceRef.adoc[ChoiceRef]::ChoiceRef
:relfileprefix: ../../../
:mrdocs:

Create `ChoiceRef` object that type erases the supplied `choice` object&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;CHOICE&gt;
explicit
ChoiceRef(
    t&lowbar;CHOICE& choice,
    void* = 0)
requires IsChoice&lt;t&lowbar;CHOICE&gt;&colon;&colon;value;
----


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