[#BloombergLP-bdlar-bdlat_choiceHasSelection-03]
= 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 `selectionName` and `selectionNameLength`&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,
    char const* selectionName,
    int selectionNameLength);
----


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