Partial specialization for a trivially destructible contained value.
Declared in <bslstl_optional.h>
template<class t_TYPE>
struct Optional_Data<t_TYPE, true>
: Optional_DataImp<t_TYPE>
This partial specialization manages a trivially destructible value_type in Optional_Base. It does not have a user-provided destructor, which makes it is_trivially_destructible itself.
| Name | Description |
|---|---|
Optional_DataImp<t_TYPE> | Component-private buffer managing an optional's contained value. |
| Name | Description |
|---|---|
emplace | Destroy any contained value and construct a new one in place. |
hasValue | Return true if this objects has a value, and false otherwise. |
reset | Destroy the value_type object in d_buffer, if any. |
value | value overloads |
operator BloombergLP::bslmf::NestedTraitDeclaration<Optional_Data, IsBitwiseCopyable, bslmf::IsBitwiseCopyable<t_TYPE>::value> | Nested trait declaration for bslmf::IsBitwiseCopyable. |
| Name | Description |
|---|---|
Unnamed using | Inherit Optional_DataImp constructors from the base class. |