// Copyright (C) 2022 johannst #include template struct any_of : std::false_type {}; // Found our type T in the list of types U. template struct any_of : std::true_type {}; // Pop off the first element in the list of types U, // since it didn't match our type T. template struct any_of : any_of {}; // Convenience template variable to invoke meta function. template constexpr bool any_of_v = any_of::value; static_assert(any_of_v, ""); static_assert(!any_of_v, "");