From 5127da9eccb751a895a12db80a29149b2b2006eb Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 1 Feb 2023 01:22:19 +0200 Subject: [PATCH] BAN: Add more traits --- BAN/include/BAN/Traits.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/BAN/include/BAN/Traits.h b/BAN/include/BAN/Traits.h index 1abda327b..28e87fea1 100644 --- a/BAN/include/BAN/Traits.h +++ b/BAN/include/BAN/Traits.h @@ -10,6 +10,21 @@ namespace BAN template struct RemoveReference { using type = T; }; + template + struct RemoveConst { using type = T; }; + template + struct RemoveConst { using type = T; }; + + template + struct EnableIf {}; + template + struct EnableIf { using type = T; }; + + template + struct IsSame { static constexpr bool value = false; }; + template + struct IsSame { static constexpr bool value = true; }; + template struct IsLValueReference { static constexpr bool value = false; }; template