[#BloombergLP-bdlat_ChoiceFunctions-bdlat_choiceHasSelection-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat_ChoiceFunctions.adoc[bdlat&lowbar;ChoiceFunctions]::bdlat&lowbar;choiceHasSelection
:relfileprefix: ../../
:mrdocs:

Default customization&hyphen;point implementation of `hasSelection` by id&period;

== Synopsis

Declared in `&lt;bdlat&lowbar;choicefunctions&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
bool
bdlat&lowbar;choiceHasSelection(
    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]#
