Home
last modified time | relevance | path

Searched refs:TypeAtIndex (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DSTLExtrasTest.cpp956 TEST(STLExtrasTest, TypeAtIndex) { in TEST() argument
957 EXPECT_TRUE((std::is_same<int, llvm::TypeAtIndex<0, int>>::value)); in TEST()
958 EXPECT_TRUE((std::is_same<int, llvm::TypeAtIndex<0, int, float>>::value)); in TEST()
959 EXPECT_TRUE((std::is_same<float, llvm::TypeAtIndex<1, int, float>>::value)); in TEST()
961 (std::is_same<float, llvm::TypeAtIndex<1, int, float, double>>::value)); in TEST()
963 (std::is_same<float, llvm::TypeAtIndex<1, int, float, double>>::value)); in TEST()
965 (std::is_same<double, llvm::TypeAtIndex<2, int, float, double>>::value)); in TEST()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DPointerUnion.h126 using First = TypeAtIndex<0, PTs...>;
H A DSTLExtras.h207 using TypeAtIndex = std::tuple_element_t<I, std::tuple<Ts...>>;