110 if (mInited == rhs.mInited) {
115 return mValue == rhs.mValue;
T value()
Will return the value or the default value if no init was performed before.
bool operator==(const TOptional< T > &rhs) const
The copy constructor.
T & operator=(const T &value)
Default operators.
bool isInited() const
Will return false, if the value was not set,.
void set(T value)
Will set the value, the instance will be in init state true afterwards.
~TOptional()=default
The class destructor.
TOptional()=delete
The default class constructor is deleted.