BloombergLP::bdlb::NullableValue::value

value overloads

Synopses

Declared in <bdlb_nullablevalue.h>

Return a reference providing modifiable access to the underlying TYPE object. The behavior is undefined unless this object is non-null.

TYPE&
value();
» more...

Return a reference providing non-modifiable access to the underlying object of a (template parameter) TYPE. The behavior is undefined unless this object is non-null.

TYPE const&
value() const;
» more...

Return a reference providing modifiable access to the underlying t_TYPE object if true == has_value() and throw bsl::bad_optional_access otherwise.

t_TYPE&
value() &;
» more...

Return an rvalue reference to the contained value; throws if disengaged.

t_TYPE&&
value() &&;
» more...

Return a reference providing non-modifiable access to the underlying t_TYPE object if true == has_value() and throw bsl::bad_optional_access otherwise.

t_TYPE const&
value() const &;
» more...

Return an rvalue reference to the underlying t_TYPE object if true == has_value() and throw bsl::bad_optional_access otherwise.

t_TYPE const&&
value() const &&;
» more...