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

`hasSelection` overloads

== Synopses

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdlar/ChoiceConstRef/hasSelection-0d.adoc[hasSelection](int selectionId) const;
----

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdlar/ChoiceConstRef/hasSelection-08.adoc[hasSelection](
    char const* selectionName,
    int selectionNameLength) const;
----

[.small]#xref:BloombergLP/bdlar/ChoiceConstRef/hasSelection-08.adoc[_» more&period;&period;&period;_]#


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