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