BloombergLP::balcl::OptionValue_NullOf

This single-attribute class represents a null value of a given nullable balcl::OptionType.

Synopsis

Declared in <balcl_optionvalue.h>

class OptionValue_NullOf;

Description

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.

Member Functions

NameDescription
OptionValue_NullOf [constructor]Create an OptionValue_NullOf object with the specified nullable optionType. The behavior is undefined if optionType == OptionType::e_VOID.
isType Return true if TYPE corresponds to the type attribute, and false if it does not.
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.
type Return the option type of this object.
operator BloombergLP::bslmf::NestedTraitDeclaration<OptionValue_NullOf, HasPrintMethod> Nested trait declaration for bslmf::IsBitwiseMoveable.

Non-Member Functions

NameDescription
operator!=Return true if the type of the specified lhs and rhs are not equal, and return false if they are not equal.
operator==Return true if the type of the specified lhs and rhs are equal, and return false if they are not equal.