Component‐private storage that destroys a non‐trivial contained value.
Synopsis
Declared in <bslstl_optional.h>
template<
class t_TYPE,
bool t_IS_TRIVIALLY_DESTRUCTIBLE = bslstl::Optional_IsTriviallyDestructible<t_TYPE>::value>
struct Optional_Data
: Optional_DataImp<t_TYPE>
Description
This component‐private struct manages a value_type object in Optional_Base by inheriting from Optional_DataImp. In addition, this primary template properly destroys the owned instance of t_TYPE in its destructor.
Base Classes
Name |
Description |
Component‐private buffer managing an optional's contained value. |
Member Functions
Name |
Description |
|
Destroy the managed |
Destroy any contained value and construct a new one in place. |
|
Return |
|
Destroy the |
|
|
Using Declarations
Name |
Description |
Inherit |
Specializations
Name |
Description |
Partial specialization for a trivially destructible contained value. |
Created with MrDocs