[#BloombergLP-bdlar-bdlat_choiceHasSelection-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::bdlat&lowbar;choiceHasSelection
:relfileprefix: ../../
:mrdocs:

Return whether the specified `ref` has the selection with the specified `selectionId`&period;

== Synopsis

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

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

== Return Value

`true` if the selection exists, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ref*
| choice reference to query
| *selectionId*
| id of the selection to look up
|===


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