mn_optional.hpp
Go to the documentation of this file.
Definition: mn_optional.hpp:32
constexpr basic_optional(Args &&... args)
Definition: mn_optional.hpp:57
const_reference value() const
Returns the basic_optional's value.
Definition: mn_optional.hpp:134
bool m_bHasValue
Flag whether or not has this basic_optianel a value.
Definition: mn_optional.hpp:207
constexpr const_reference operator*() const
Definition: mn_optional.hpp:185
basic_optional(const self_type &other)
Definition: mn_optional.hpp:49
self_type & assign(const_value_type &value)
Assigns a value to the basic_otional.
Definition: mn_optional.hpp:85
reference value()
Returns the basic_optional's value.
Definition: mn_optional.hpp:127
self_type & assign(const self_type &other)
Assigns another basic_otional.
Definition: mn_optional.hpp:104
void swap(self_type &other)
Swap this basic_optional with a other.
Definition: mn_optional.hpp:112
basic_optional(const self_type &&other) noexcept
Definition: mn_optional.hpp:52
constexpr const_pointer operator->() const
Get the given value as pointer.
Definition: mn_optional.hpp:171
constexpr bool has_value() const noexcept
Have this basic_optional a value?
Definition: mn_optional.hpp:121
constexpr value_type value_or(const value_type value) const
Returns the basic_optional's value, or the given default value when this basic_optional no value have...
Definition: mn_optional.hpp:142
self_type & assign(move_type value)
Moves a value into the basic_otional.
Definition: mn_optional.hpp:95
self_type & operator=(const self_type &other) noexcept
Assigns another basic_otional.
Definition: mn_optional.hpp:157
void reset() noexcept
Resets the basic_optional.
Definition: mn_optional.hpp:69
constexpr value_type value_or(const U &value) const
Returns the basic_optional's value, or the given default value when this basic_optional no value have...
Definition: mn_optional.hpp:150
value_type m_tValue
A saved / cached copy of the value.
Definition: mn_optional.hpp:211
Basic algorithmens This file is part of the Mini Thread Library (https://github.com/RoseLeBlood/MiniT...
struct mn::memory::detail::ptr_difference T
Definition: mn_atomic_singleton.hpp:38
Definition: mn_allocator_typetraits.hpp:25
constexpr bool operator==(const byte l, const byte r) noexcept
Definition: mn_def.hpp:112
constexpr bool operator!=(const byte l, const byte r) noexcept
Definition: mn_def.hpp:116
constexpr basic_optional< typename mn::decay< T >::type > make_optional(T &&value)
Definition: mn_optional.hpp:374
constexpr bool operator<=(const byte l, const byte r) noexcept
Definition: mn_def.hpp:124
constexpr bool operator<(const byte l, const byte r) noexcept
Definition: mn_def.hpp:120
constexpr bool operator>=(const byte l, const byte r) noexcept
Definition: mn_def.hpp:132
constexpr bool operator>(const byte l, const byte r) noexcept
Definition: mn_def.hpp:128
Definition: mn_optional.hpp:29
Definition: mn_typetraits.hpp:159