diff --git a/BAN/include/BAN/Traits.h b/BAN/include/BAN/Traits.h index 6e22b6ad..ce755f8a 100644 --- a/BAN/include/BAN/Traits.h +++ b/BAN/include/BAN/Traits.h @@ -139,6 +139,10 @@ namespace BAN template using make_signed_t = typename make_signed::type; #undef __BAN_TRAITS_MAKE_SIGNED_CV + template struct it_value_type { using value_type = T::value_type; }; + template struct it_value_type { using value_type = T; }; + template using it_value_type_t = typename it_value_type::value_type; + template struct less { constexpr bool operator()(const T& lhs, const T& rhs) const { return lhs < rhs; } }; template struct equal { constexpr bool operator()(const T& lhs, const T& rhs) const { return lhs == rhs; } }; template struct greater { constexpr bool operator()(const T& lhs, const T& rhs) const { return lhs > rhs; } };