Template Class Optional

Class Documentation

template<typename T>
class Optional

Public Functions

inline Optional()
inline ~Optional()
inline Optional(T const &_value)
inline Optional(T &&_value)
inline Optional &operator=(T const &_value)
inline Optional &operator=(T &&_value)
inline Optional(Optional const &_other)
inline Optional(Optional &&_other)
inline Optional &operator=(Optional const &_other)
inline Optional &operator=(Optional &&_other)
inline void reset()
inline T &operator*()
inline T const &operator*() const
inline T *operator->()
inline const T *operator->() const
inline T valueOr(T const &defaultValue) const
inline bool some() const
inline bool none() const
inline bool operator!() const
inline explicit operator bool() const

Friends

inline friend bool operator==(Optional const &a, Optional const &b)
inline friend bool operator!=(Optional const &a, Optional const &b)