[#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`. The behavior is undefined unless `OptionType::TypeToEnum<TYPE>::value == type()` for the (template parameter) `TYPE` and `OptionType::e_VOID != type()`. == Synopsis Declared in `<balcl_optionvalue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> void set(TYPE const& value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#