Component‐private buffer managing an optional's contained value.
Synopsis
Declared in <bslstl_optional.h>
template<class t_TYPE>
struct Optional_DataImp;
Description
This component‐private struct manages a value_type object in an Optional_Base object. This class provides an abstraction for const value type. An Optional_Base object may contain an object of const type. An assignment to such an Optional_Base object should not succeed. However, unless the Optional_Base object itself is const, it should be possible to change the value of the Optional_Base object using emplace. In order to allow for that, this class manages a non‐const object of value_type, but all the accessors return a const adjusted reference to the managed object.
Member Functions
Name |
Description |
|
Constructors |
Destroy any contained value and construct a new one in place. |
|
Return |
|
Destroy the |
|
|
Derived Classes
Name |
Description |
Partial specialization for a trivially destructible contained value. |
|
Component‐private storage that destroys a non‐trivial contained value. |
Created with MrDocs