27 namespace OnixS {
namespace ICE {
namespace iMpact {
namespace MarketData {
134 return *
static_cast<T*
>(
storage());
139 return *
static_cast<const T*
>(
storage());
144 if (
init_)
get().~T();
158 template <
typename T>
159 std::ostream& operator<<(std::ostream& os, const Optional<T>&
value)
~Optional()
If engaged, destroys the contained value.
Optional & operator=(const Optional< T > &opt)
Assigns contents.
const T & value() const
A const reference to the contained value.
Optional()
Uninitialized instance.
const void * storage() const
T & value()
A reference to the contained value.
T & operator*()
Returns a reference to the contained value.
const T & operator*() const
Returns a const reference to the contained value.
Optional & operator=(const T &val)
Assigns contents.
Optional(const Optional< T > &opt)
void construct(const T &data)
Optional(const T &val)
Constructs the optional object.
void reset()
Reset stored value and set state to Uninitialized.