27 namespace OnixS {
namespace ICE {
namespace iMpact {
namespace MarketData {
142 return *
static_cast<T*
>(
storage());
147 return *
static_cast<const T*
>(
storage());
169 template <
typename T>
170 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.