aboutsummaryrefslogtreecommitdiff
path: root/source/10-common/TypeTraits.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2023-10-19 22:50:07 -0700
committerrtk0c <[email protected]>2025-08-16 11:31:16 -0700
commit297232d21594b138bb368a42b5b0d085ff9ed6aa (patch)
tree075d5407e1e12a9d35cbee6e4c20ad34e0765c42 /source/10-common/TypeTraits.hpp
parentd5cd34ff69f7fd134d5450696f298af1a864afbc (diff)
The great renaming: switch to "module style"
Diffstat (limited to 'source/10-common/TypeTraits.hpp')
-rw-r--r--source/10-common/TypeTraits.hpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/source/10-common/TypeTraits.hpp b/source/10-common/TypeTraits.hpp
deleted file mode 100644
index 73a56f9..0000000
--- a/source/10-common/TypeTraits.hpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#pragma once
-
-#include <cstddef>
-
-/// This template will be instanciated for each unique type, and the char variable will be ODR-used which gives it an unique address.
-template <typename T>
-struct TypeIdentifier {
- static const char obj = 0;
-};
-
-template <typename T>
-struct DefaultDeleter {
- void operator()(T* ptr) const {
- delete ptr;
- }
-};
-
-template <typename>
-struct RemoveMemberPtrImpl {};
-
-template <typename T, typename U>
-struct RemoveMemberPtrImpl<U T::*> {
- using Type = U;
-};
-
-template <typename T>
-using RemoveMemberPtr = typename RemoveMemberPtrImpl<T>::Type;