From c4c16ea5a072ec40b20f964803661c766f92b113 Mon Sep 17 00:00:00 2001 From: jmd Date: Mon, 7 Oct 2024 20:21:23 -0700 Subject: [PATCH] [util] add: spaceship op to MemoryMarker and MemoryBlock --- lib/nw/util/memory.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/nw/util/memory.hpp b/lib/nw/util/memory.hpp index c51b62265..5042a48de 100644 --- a/lib/nw/util/memory.hpp +++ b/lib/nw/util/memory.hpp @@ -36,11 +36,15 @@ struct MemoryBlock { uint8_t* block = nullptr; size_t position = 0; size_t size = 0; + + auto operator<=>(const MemoryBlock&) const = default; }; struct MemoryMarker { size_t chunk_index = 0; size_t position = 0; + + auto operator<=>(const MemoryMarker&) const = default; }; /// A growable Memory Arena