[#BloombergLP-balcl-OccurrenceInfo-2constructor-036] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/OccurrenceInfo.adoc[OccurrenceInfo]::OccurrenceInfo :relfileprefix: ../../../ :mrdocs: Construct an `OccurrenceInfo` of the specified occurrence `type`. == Synopsis Declared in `<balcl_occurrenceinfo.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- OccurrenceInfo( xref:BloombergLP/balcl/OccurrenceInfo/OccurrenceType-09.adoc[OccurrenceType] type, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- == Description Construct an `OccurrenceInfo` object that describes a command‐line option of the specified `type` and has no default value. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. == Parameters [cols="1,4"] |=== | Name| Description | *type* | occurrence requirement for the described option | *basicAllocator* | memory allocator; null uses the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#