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