19 inline state<T>::state(
const T& value, 
const T& defaultValue) noexcept : m_State(value)
 
   20                                                                        , m_DefaultValue(defaultValue)
 
   32 inline bool state<T>::operator==(
const T& value) 
const noexcept
 
   34     return m_State == value;
 
   38 inline T* state<T>::operator->() noexcept
 
   44 inline const T* state<T>::operator->() const noexcept
 
   50 inline T& state<T>::operator*() noexcept
 
   56 inline const T& state<T>::operator*() const noexcept
 
   64     m_State = m_DefaultValue;
 
   70     return m_State == m_DefaultValue;
 
   79 struct hash<qx::state<T>>
 
   81     size_t operator()(
const qx::state<T>& state) 
const noexcept
 
   83         return std::hash<T>()(state.m_State);
 
void reset() noexcept
Reset current state to its default value.
 
bool is_default() const noexcept
Is current state default.