[#BloombergLP-bdlar-ChoiceConstRef-hasSelection-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/ChoiceConstRef.adoc[ChoiceConstRef]::hasSelection
:relfileprefix: ../../../
:mrdocs:

Return true if the object has a selection with the specified `selectionId`, and false otherwise&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
hasSelection(int selectionId) const;
----


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