114 return std::strong_ordering::equal;
116 return std::strong_ordering::less;
118 return std::strong_ordering::greater;
Definition mutexed.hxx:14
Mutexed(const Mutexed< T > &other) noexcept
Copy constructor.
Definition mutexed.hxx:31
void Unlock() const
Unlocks the mutex.
Definition mutexed.hxx:173
virtual Mutexed< T > & operator=(T &&value) noexcept
Assignment move operator.
Definition mutexed.hxx:91
virtual Mutexed< T > & operator=(const T &value) noexcept
Assignment operator.
Definition mutexed.hxx:80
virtual T & operator*() noexcept
Dereference operator (use with explicit locking).
Definition mutexed.hxx:135
virtual const T & operator*() const noexcept
Dereference operator (use with explicit locking).
Definition mutexed.hxx:143
Mutexed< T > & operator=(const Mutexed< T > &other) noexcept
Copy assignment operator.
Definition mutexed.hxx:52
Mutexed(Mutexed< T > &&other) noexcept
Move constructor.
Definition mutexed.hxx:41
void Lock() const
Locks the mutex.
Definition mutexed.hxx:166
bool operator!=(const Mutexed &other) const noexcept
Inequality operator.
Definition mutexed.hxx:127
Mutexed< T > & operator=(Mutexed< T > &&other) noexcept
Move assignment operator.
Definition mutexed.hxx:66
virtual ~Mutexed() noexcept=default
Destructor.
virtual T * operator->() noexcept
Pointer dereference operator (use with explicit locking).
Definition mutexed.hxx:151
std::mutex m_mutex
Mutex.
Definition mutexed.hxx:179
virtual const T * operator->() const noexcept
Pointer dereference operator (use with explicit locking).
Definition mutexed.hxx:159
std::strong_ordering operator<=>(const Mutexed &other) const noexcept
Spaceship operator for comparison.
Definition mutexed.hxx:107
Mutexed() noexcept=default
Default constructor.
T m_value
Value.
Definition mutexed.hxx:178
Main namespace for the StormByte library.
std::conditional_t< is_reference< T >::value, std::expected< std::reference_wrapper< std::remove_reference_t< T > >, std::shared_ptr< E > >, std::expected< T, std::shared_ptr< E > > > Expected
Expected type with support for reference types.
Definition expected.hxx:32