diff --git a/source/mijin/util/traits.hpp b/source/mijin/util/traits.hpp index dfe4303..78d8011 100644 --- a/source/mijin/util/traits.hpp +++ b/source/mijin/util/traits.hpp @@ -39,8 +39,6 @@ struct always_false_val template inline constexpr bool always_false_val_v = always_false_val::value; - - template typename TFilter, typename... TArgs> struct TypeFilter; @@ -103,6 +101,17 @@ struct is_any_type : std::disjunction...> {}; template static constexpr bool is_any_type_v = is_any_type::value; +template +struct is_type_member; + +template typename TCollection, typename... Ts> +struct is_type_member> + : std::bool_constant<(... || std::is_same{})> +{}; + +template +constexpr bool is_type_member_v = is_type_member::value; + // // public functions //