[#BloombergLP-bdlat_ChoiceFunctions-bdlat_choiceHasSelection-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat_ChoiceFunctions.adoc[bdlat_ChoiceFunctions]::bdlat_choiceHasSelection :relfileprefix: ../../ :mrdocs: `bdlat_choiceHasSelection` overloads == Synopses Declared in `<bdlat_choicefunctions.h>` Default customization‐point implementation of `hasSelection` by id. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlat_ChoiceFunctions/bdlat_choiceHasSelection-03.adoc[bdlat_choiceHasSelection]( TYPE const& object, int selectionId); ---- [.small]#xref:BloombergLP/bdlat_ChoiceFunctions/bdlat_choiceHasSelection-03.adoc[_» more..._]# Default customization‐point implementation of `hasSelection` by name. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlat_ChoiceFunctions/bdlat_choiceHasSelection-0a.adoc[bdlat_choiceHasSelection]( TYPE const& object, char const* selectionName, int selectionNameLength); ---- [.small]#xref:BloombergLP/bdlat_ChoiceFunctions/bdlat_choiceHasSelection-0a.adoc[_» more..._]# == Return Value * `true` if `object` has the selection, and `false` otherwise * `true` if `object` has the named selection, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *object* | choice object to query | *selectionId* | id of the selection to look up | *selectionName* | name of the selection to look up | *selectionNameLength* | length of `selectionName` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#