Added operators to BoxedObject, fixed MappintIterator for reference types and fixed signature of custom assertion and error handlers.

This commit is contained in:
2023-11-12 15:25:46 +01:00
parent 2cc0f74d06
commit 7c1dd29a85
4 changed files with 24 additions and 18 deletions

View File

@@ -138,6 +138,10 @@ public:
constexpr explicit operator bool() const noexcept { return !empty(); }
[[nodiscard]]
constexpr bool operator !() const noexcept { return empty(); }
[[nodiscard]]
constexpr std::remove_reference_t<TValue>& operator*() noexcept { return get(); }
[[nodiscard]]
constexpr const std::remove_reference_t<TValue>& operator*() const noexcept { return get(); }
public:
template<typename... Types>
void emplace(Types&&... params) noexcept;