[#BloombergLP-bdlar-ChoiceRef-hasSelection-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/ChoiceRef.adoc[ChoiceRef]::hasSelection :relfileprefix: ../../../ :mrdocs: Return true if the object has a selection with the specified `selectionName` of the specified `selectionNameLength`, and false otherwise. == Synopsis Declared in `<bdlar_choiceref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool hasSelection( char const* selectionName, int selectionNameLength) const; ---- == Return Value `true` if the selection exists, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *selectionName* | name of the selection to look up | *selectionNameLength* | length of `selectionName` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#