diff options
Diffstat (limited to 'asl/box.hpp')
-rw-r--r-- | asl/box.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/asl/box.hpp b/asl/box.hpp index d018c03..340a37c 100644 --- a/asl/box.hpp +++ b/asl/box.hpp @@ -5,6 +5,7 @@ #include "asl/annotations.hpp"
#include "asl/memory.hpp"
#include "asl/utility.hpp"
+#include "asl/hash.hpp"
namespace asl
{
@@ -82,6 +83,13 @@ public: {
return m_ptr == nullptr;
}
+
+ template<typename H>
+ requires hashable<T>
+ friend H AslHashValue(H h, const box& b)
+ {
+ return H::combine(ASL_MOVE(h), *b);
+ }
};
template<is_object T, allocator Allocator = DefaultAllocator, typename... Args>
|