summaryrefslogtreecommitdiffhomepage
path: root/src/handle-fwd.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/handle-fwd.hpp')
-rw-r--r--src/handle-fwd.hpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/handle-fwd.hpp b/src/handle-fwd.hpp
deleted file mode 100644
index 3e010f6d..00000000
--- a/src/handle-fwd.hpp
+++ /dev/null
@@ -1,32 +0,0 @@
-#pragma once
-
-namespace floormat::impl_handle {
-
-template<typename OBJ, uint32_t PAGE_SIZE> struct Handle;
-template<typename Obj, uint32_t PageSize> struct Item;
-template<typename Obj, uint32_t PageSize> class Page;
-template<typename Obj, uint32_t PageSize> class Pool;
-
-template<typename OBJ, uint32_t PAGE_SIZE>
-struct Handle final
-{
- uint32_t index = (uint32_t)-1;
- uint32_t counter = 0;
-
- const OBJ& get() const;
- OBJ& get();
- bool operator==(const Handle& other) const noexcept;
- explicit operator bool() const noexcept;
-
-private:
- static Item<OBJ, PAGE_SIZE>& get_from_pool(uint32_t index, uint32_t counter);
-};
-
-} // namespace floormat::impl_handle
-
-namespace floormat {
-
-template<typename Obj, uint32_t PageSize>
-using handle = struct impl_handle::Handle<Obj, PageSize>;
-
-} // namespace floormat