summaryrefslogtreecommitdiff
path: root/asl/meta/types.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'asl/meta/types.hpp')
-rw-r--r--asl/meta/types.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/asl/meta/types.hpp b/asl/meta/types.hpp
new file mode 100644
index 0000000..b5aa192
--- /dev/null
+++ b/asl/meta/types.hpp
@@ -0,0 +1,14 @@
+#pragma once
+
+namespace asl {
+
+template<typename T> using void_t = void;
+
+template<typename T, typename = void>
+inline constexpr bool referenceable = false;
+
+template<typename T>
+inline constexpr bool referenceable<T, void_t<T&>> = true;
+
+} // namespace asl
+