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