[#BloombergLP-bdlar-bdlat_choiceSelectionId-0eb]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::bdlat&lowbar;choiceSelectionId
:relfileprefix: ../../
:mrdocs:

Return the id of the current selection if the selection is defined, and &hyphen;1 otherwise&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
bdlat&lowbar;choiceSelectionId(xref:BloombergLP/bdlar/ChoiceConstRef.adoc[ChoiceConstRef] const& ref);
----


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