[#BloombergLP-balcl-OptionValue_NullOf]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::OptionValue&lowbar;NullOf
:relfileprefix: ../../
:mrdocs:

This single&hyphen;attribute class represents a null value of a given nullable `balcl&colon;&colon;OptionType`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class OptionValue&lowbar;NullOf;
----

== Description

`OptionValue` uses this type to represent its state where there is a known type, but no value for it&period; Note that `OptionType&colon;&colon;e&lowbar;VOID` is _not_ nullable, therefore not supported here&period; Note that&colon; There is no `swap` member or namespace&hyphen;level function declared (and defined) for this class on purpose, the general swap works fast for such a simple type&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balcl/OptionValue_NullOf/2constructor.adoc[`OptionValue&lowbar;NullOf`]         [.small]#[constructor]#
| Create an `OptionValue&lowbar;NullOf` object with the specified nullable `optionType`&period; The behavior is undefined if `optionType &equals;&equals; OptionType&colon;&colon;e&lowbar;VOID`&period;
| xref:BloombergLP/balcl/OptionValue_NullOf/isType.adoc[`isType`] 
| Return `true` if `TYPE` corresponds to the `type` attribute, and `false` if it does not&period;
| 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`&period;
| xref:BloombergLP/balcl/OptionValue_NullOf/type.adoc[`type`] 
| Return the option `type` of this object&period;
| xref:BloombergLP/balcl/OptionValue_NullOf/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;OptionValue&lowbar;NullOf, HasPrintMethod&gt;`] 
| Nested trait declaration for `bslmf&colon;&colon;IsBitwiseMoveable`&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balcl/operator_not_eq-02.adoc[`operator!&equals;`]
| Return `true` if the `type` of the specified `lhs` and `rhs` are not equal, and return `false` if they are not equal&period;
| xref:BloombergLP/balcl/operator_eq-0b1.adoc[`operator&equals;&equals;`]
| Return `true` if the `type` of the specified `lhs` and `rhs` are equal, and return `false` if they are not equal&period;
|===


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