summaryrefslogtreecommitdiff
path: root/euler/include/type_traits
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2024-05-20 17:40:47 -0400
committerBenji Dial <benji@benjidial.net>2024-05-20 17:40:47 -0400
commit9af5588c30c4126a2800aae1afcb0de2c373dc6c (patch)
treed2a48a97b1664f958b5f88a8b0c03ef8366b0f49 /euler/include/type_traits
parent5a54df93c4e9368c36e69d1e9c88cd2904e92308 (diff)
downloadhilbert-os-9af5588c30c4126a2800aae1afcb0de2c373dc6c.tar.gz
rewrite application stuff in the kernel to support multitasking
Diffstat (limited to 'euler/include/type_traits')
-rw-r--r--euler/include/type_traits23
1 files changed, 23 insertions, 0 deletions
diff --git a/euler/include/type_traits b/euler/include/type_traits
new file mode 100644
index 0000000..fcea013
--- /dev/null
+++ b/euler/include/type_traits
@@ -0,0 +1,23 @@
+#pragma once
+
+namespace std {
+
+ template <class t>
+ struct remove_reference {
+ typedef t type;
+ };
+
+ template <class t>
+ struct remove_reference<t &> {
+ typedef t type;
+ };
+
+ template <class t>
+ struct remove_reference<t &&> {
+ typedef t type;
+ };
+
+ template <class t>
+ using remove_reference_t = typename remove_reference<t>::type;
+
+}