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