23 : m_val(val), m_empty(false)
63 return this->m_val == right.m_val;
78 return this->m_val == right;
118 return this->m_val < right.m_val;
133 return this->m_val < right;
144 m_empty = right.m_empty;
167 assert(m_empty ==
false);
void reset()
Resets the object to an empty state.
SEmptyable()
Default constructor. Initializes the object in an empty state.
SEmptyable(T val)
Constructor with initial value.
bool isEmpty() const
Checks if the object is empty.
bool operator<(const T &right) const
Less-than operator with a value of type T.
SEmptyable & operator=(const T &val)
Assignment operator from a value of type T.
bool operator!=(const SEmptyable &right) const
Inequality operator with another SEmptyable object.
SEmptyable & operator=(const SEmptyable &right)
Assignment operator from another SEmptyable object.
bool operator<(const SEmptyable &right) const
Less-than operator with another SEmptyable object.
bool operator==(const T &right) const
Equality operator with a value of type T.
bool operator!=(const T &right) const
Inequality operator with a value of type T.
bool operator==(const SEmptyable &right) const
Equality operator with another SEmptyable object.