From 75b10758ba116eabed730d23e957f1d69a1e3cb8 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Tue, 6 Aug 2024 00:34:57 +0200 Subject: Type traits --- asl/meta/internal/refs.hpp | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 asl/meta/internal/refs.hpp (limited to 'asl/meta/internal/refs.hpp') diff --git a/asl/meta/internal/refs.hpp b/asl/meta/internal/refs.hpp deleted file mode 100644 index b21a0a1..0000000 --- a/asl/meta/internal/refs.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#pragma once - -#include "asl/meta/types.hpp" - -namespace asl::internal { - -template -inline constexpr bool is_referenceable = false; - -template -inline constexpr bool is_referenceable> = true; - -template> -struct as_ref_helper { using lvalue = T; using rvalue = T; }; - -template -struct as_ref_helper { using lvalue = T&; using rvalue = T&&; }; - -template struct un_ref_helper { using type = T; }; -template struct un_ref_helper { using type = T; }; -template struct un_ref_helper { using type = T; }; - -template -struct is_ref_helper -{ - static inline constexpr bool lref = false; - static inline constexpr bool rref = false; -}; - -template -struct is_ref_helper -{ - static inline constexpr bool lref = true; - static inline constexpr bool rref = false; -}; - -template -struct is_ref_helper -{ - static inline constexpr bool lref = false; - static inline constexpr bool rref = true; -}; - -} // namespace asl::internal - -- cgit