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

Return `true` if the specified `ref` has the selection identified by the specified `selectionName` of the specified `selectionNameLength`, and `false` otherwise&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/ChoiceConstRef.adoc[ChoiceConstRef] const& ref,
    char const* selectionName,
    int selectionNameLength);
----

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ref*
| choice reference to query
| *selectionName*
| name of the selection to look up
| *selectionNameLength*
| length of `selectionName`
|===


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