[#BloombergLP-bdlar-ChoiceRef-hasSelection-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/ChoiceRef.adoc[ChoiceRef]::hasSelection :relfileprefix: ../../../ :mrdocs: `hasSelection` overloads == Synopses Declared in `<bdlar_choiceref.h>` Return true if the object has a selection with the specified `selectionId`, and false otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdlar/ChoiceRef/hasSelection-0f.adoc[hasSelection](int selectionId) const; ---- [.small]#xref:BloombergLP/bdlar/ChoiceRef/hasSelection-0f.adoc[_» more..._]# Return true if the object has a selection with the specified `selectionName` of the specified `selectionNameLength`, and false otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdlar/ChoiceRef/hasSelection-0d.adoc[hasSelection]( char const* selectionName, int selectionNameLength) const; ---- [.small]#xref:BloombergLP/bdlar/ChoiceRef/hasSelection-0d.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#