aboutsummaryrefslogtreecommitdiffstats
path: root/include/api-test/handle.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/api-test/handle.hpp')
-rw-r--r--include/api-test/handle.hpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/include/api-test/handle.hpp b/include/api-test/handle.hpp
deleted file mode 100644
index 2c52c01..0000000
--- a/include/api-test/handle.hpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#pragma once
-
-#include <cstdint>
-
-// template<typename T>
-// struct handle {
-// uint32_t id = handle::invalid_id;
-//
-// [[nodiscard]] inline bool is_valid() const { return id != handle::invalid_id; }
-//
-// static constexpr uint32_t invalid_id = -1U;
-// };
-
-template<typename U>
-struct handle {
- uint32_t id = invalid_id;
- uint32_t generation = 0U;
-
- [[nodiscard]] inline bool is_valid() const { return id != handle::invalid_id; }
-
- static constexpr uint32_t invalid_id = UINT32_MAX;
-
- // static constexpr handle<U> invalid_handle {};
-};