Searched refs:TypesAreDistinct (Results 1 – 3 of 3) sorted by relevance
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | STLExtrasTest.cpp | 933 TEST(STLExtrasTest, TypesAreDistinct) { in TEST() argument 934 EXPECT_TRUE((llvm::TypesAreDistinct<>::value)); in TEST() 935 EXPECT_TRUE((llvm::TypesAreDistinct<int>::value)); in TEST() 936 EXPECT_FALSE((llvm::TypesAreDistinct<int, int>::value)); in TEST() 937 EXPECT_TRUE((llvm::TypesAreDistinct<int, float>::value)); in TEST() 938 EXPECT_FALSE((llvm::TypesAreDistinct<int, float, int>::value)); in TEST() 939 EXPECT_TRUE((llvm::TypesAreDistinct<int, float, double>::value)); in TEST() 941 EXPECT_TRUE((llvm::TypesAreDistinct<int, int *>::value)); in TEST() 942 EXPECT_TRUE((llvm::TypesAreDistinct<int, int &>::value)); in TEST() 943 EXPECT_TRUE((llvm::TypesAreDistinct<int, int &&>::value)); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | STLExtras.h | 165 template <typename T, typename... Us> struct TypesAreDistinct; 167 struct TypesAreDistinct 169 TypesAreDistinct<Us...>::value> {}; 170 template <typename T> struct TypesAreDistinct<T> : std::true_type {}; 180 template <typename... Ts> struct TypesAreDistinct; 181 template <> struct TypesAreDistinct<> : std::true_type {}; 183 struct TypesAreDistinct 184 : std::integral_constant<bool, detail::TypesAreDistinct<Ts...>::value> {};
|
| H A D | PointerUnion.h | 119 static_assert(TypesAreDistinct<PTs...>::value,
|