[#BloombergLP-balcl-OccurrenceInfo-setDefaultValue]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/OccurrenceInfo.adoc[OccurrenceInfo]::setDefaultValue
:relfileprefix: ../../../
:mrdocs:

Set the type and default value of the associated option to the specified `defaultValue`&period; The behavior is undefined unless the this object describes an optional argument (`e&lowbar;REQUIRED !&equals; occurrenceType()`) and `defaultValue&period;type()` is neither `OptionType&colon;&colon;e&lowbar;BOOL` nor &apos;OptionType&colon;&colon;e&lowbar;VOID nor a null value (`false &equals;&equals; defaultValue&period;isNull()`)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setDefaultValue(xref:BloombergLP/balcl/OptionValue.adoc[OptionValue] const& defaultValue);
----


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