[#BloombergLP-balcl-OptionValue-set]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/OptionValue.adoc[OptionValue]::set
:relfileprefix: ../../../
:mrdocs:

Set the value of this object to the specified `value`&period; The behavior is undefined unless `OptionType&colon;&colon;TypeToEnum&lt;TYPE&gt;&colon;&colon;value &equals;&equals; type()` for the (template parameter) `TYPE` and `OptionType&colon;&colon;e&lowbar;VOID !&equals; type()`&period;

== Synopsis

Declared in `&lt;balcl&lowbar;optionvalue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
void
set(TYPE const& value);
----


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