BloombergLP::balcl::OccurrenceInfo::OccurrenceInfo

Construct an optional OccurrenceInfo with the specified default value.

Synopsis

Declared in <balcl_occurrenceinfo.h>

explicit
OccurrenceInfo(
    char defaultValue,
    bslma::Allocator* basicAllocator = 0);

Description

Construct an OccurrenceInfo object that describes a command-line option that is not required or hidden, and that has the specified defaultValue. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

NameDescription
defaultValuedefault value for the described option
basicAllocatormemory allocator; null uses the default