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

Return the id of the current selection if the selection is defined, and k&lowbar;UNDEFINED&lowbar;SELECTION&lowbar;ID otherwise&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
selectionId(TYPE const& object);
----

== Return Value

id of the current selection, or `k&lowbar;UNDEFINED&lowbar;SELECTION&lowbar;ID` if none

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| choice object to query
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
