24 #include <OnixS/Senaf/MarketData/Export.h> 28 namespace OnixS {
namespace Senaf {
namespace MarketData {
143 return *
static_cast<T*
>(
storage());
148 return *
static_cast<const T*
>(
storage());
const void * storage() const
Optional & operator=(const T &val)
Assigns contents.
Optional()
Uninitialized instance.
Optional(const T &val)
Constructs the optional object.
const T & value() const
A const reference to the contained value.
T & value()
A reference to the contained value.
Optional(const Optional< T > &opt)
~Optional()
If engaged, destroys the contained value.
void reset()
Reset stored value and set state to Uninitialized.
const T & operator*() const
Returns a const reference to the contained value.
Optional & operator=(const Optional< T > &opt)
Assigns contents.
void construct(const T &data)
T & operator*()
Returns a reference to the contained value.