[#BloombergLP-bdlar-ChoiceRef-makeSelection-0bb]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/ChoiceRef.adoc[ChoiceRef]::makeSelection
:relfileprefix: ../../../
:mrdocs:

Set the value to the default for the selection indicated by `selectionId`&period;

== Synopsis

Declared in `&lt;bdlar&lowbar;choiceref&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
makeSelection(int selectionId) const;
----

== Description

Set the value to be the default for the selection indicated by the specified `selectionId`&period; Return 0 on success, and non&hyphen;zero value otherwise (i&period;e&period;, the selection is not found)&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *selectionId*
| id of the selection to make current
|===


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