summaryrefslogtreecommitdiff
path: root/common/utility.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/utility.hpp')
-rw-r--r--common/utility.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/utility.hpp b/common/utility.hpp
index 5f5c186..a8e5f83 100644
--- a/common/utility.hpp
+++ b/common/utility.hpp
@@ -85,4 +85,11 @@ namespace rawaccel {
template <typename... Ts>
constexpr void operator()(Ts&&...) const noexcept {}
};
+
+ template <typename T> struct remove_ref { using type = T; };
+ template <typename T> struct remove_ref<T&> { using type = T; };
+ template <typename T> struct remove_ref<T&&> { using type = T; };
+
+ template <typename T>
+ using remove_ref_t = typename remove_ref<T>::type;
}