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

`bdlat&lowbar;choiceHasSelection` overloads

== Synopses

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

Return `true` if the specified `ref` has the selection identified by the specified `selectionId`, and `false` otherwise&period;


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

[.small]#xref:BloombergLP/bdlar/bdlat_choiceHasSelection-01.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:BloombergLP/bdlar/bdlat_choiceHasSelection-0c.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `ref` has the selection identified by the specified `selectionName` of the specified `selectionNameLength`, and `false` otherwise&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdlar/bdlat_choiceHasSelection-0d.adoc[bdlat&lowbar;choiceHasSelection](
    xref:BloombergLP/bdlar/ChoiceConstRef.adoc[ChoiceConstRef] const& ref,
    char const* selectionName,
    int selectionNameLength);
----

[.small]#xref:BloombergLP/bdlar/bdlat_choiceHasSelection-0d.adoc[_» more&period;&period;&period;_]#

Return whether the specified `ref` has the selection with the specified `selectionName` and `selectionNameLength`&period;


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

[.small]#xref:BloombergLP/bdlar/bdlat_choiceHasSelection-03.adoc[_» more&period;&period;&period;_]#


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