diff --git a/BAN/include/BAN/Traits.h b/BAN/include/BAN/Traits.h index f9cef343..dd59de0c 100644 --- a/BAN/include/BAN/Traits.h +++ b/BAN/include/BAN/Traits.h @@ -30,6 +30,10 @@ namespace BAN template struct maybe_const { using type = const T; }; template using maybe_const_t = typename maybe_const::type; + template struct either_or { using type = T2; }; + template struct either_or { using type = T1; }; + template using either_or_t = typename either_or::type; + struct true_type { static constexpr bool value = true; }; struct false_type { static constexpr bool value = false; };