[#BloombergLP-bdlar-ChoiceRef-selectionId] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/ChoiceRef.adoc[ChoiceRef]::selectionId :relfileprefix: ../../../ :mrdocs: Return the id of the current selection if the selection is defined, and ‐1 otherwise. == Synopsis Declared in `<bdlar_choiceref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int selectionId() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#