[#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`. The behavior is undefined unless the this object describes an optional argument (`e_REQUIRED != occurrenceType()`) and `defaultValue.type()` is neither `OptionType::e_BOOL` nor 'OptionType::e_VOID nor a null value (`false == defaultValue.isNull()`). == Synopsis Declared in `<balcl_occurrenceinfo.h>` [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]#