[#BloombergLP-balcl-OptionValue_NullOf] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::OptionValue_NullOf :relfileprefix: ../../ :mrdocs: This single‐attribute class represents a null value of a given nullable `balcl::OptionType`. `OptionValue` uses this type to represent its state where there is a known type, but no value for it. Note that `OptionType::e_VOID` is _not_ nullable, therefore not supported here. Note that: There is no `swap` member or namespace‐level function declared (and defined) for this class on purpose, the general swap works fast for such a simple type. == Synopsis Declared in `<balcl_optionvalue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class OptionValue_NullOf; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balcl/OptionValue_NullOf/2constructor.adoc[`OptionValue_NullOf`] [.small]#[constructor]# | Create an `OptionValue_NullOf` object with the specified nullable `optionType`. The behavior is undefined if `optionType == OptionType::e_VOID`. | xref:BloombergLP/balcl/OptionValue_NullOf/isType.adoc[`isType`] | Return `true` if `TYPE` corresponds to the `type` attribute, and `false` if it does not. | xref:BloombergLP/balcl/OptionValue_NullOf/print.adoc[`print`] | Format this object to the specified output `stream` at the (absolute value of) the optionally specified indentation `level` and return a reference to `stream`. If `level` is specified, optionally specify `spacesPerLevel`, the number of spaces per indentation level for this and all of its nested objects. If `level` is negative, suppress indentation of the first line. If `spacesPerLevel` is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by `level`). If `stream` is not valid on entry, this operation has no effect. | xref:BloombergLP/balcl/OptionValue_NullOf/type.adoc[`type`] | Return the option `type` of this object. | xref:BloombergLP/balcl/OptionValue_NullOf/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<OptionValue_NullOf, HasPrintMethod>`] | Nested trait declaration for `bslmf::IsBitwiseMoveable`. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balcl/operator_not_eq-02.adoc[`operator!=`] | Return `true` if the `type` of the specified `lhs` and `rhs` are not equal, and return `false` if they are not equal. Two `OptionValue_NullOf` objects are equal when their `type` attributes are note equal. | xref:BloombergLP/balcl/operator_eq-0b1.adoc[`operator==`] | Return `true` if the `type` of the specified `lhs` and `rhs` are equal, and return `false` if they are not equal. Two `OptionValue_NullOf` objects are equal when their `type` attributes are equal. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#