/external/libcxx/test/std/containers/sequences/array/array.tuple/ |
D | tuple_element.pass.cpp | 23 static_assert((std::is_same<typename std::tuple_element<0, C>::type, Exp>::value), ""); in test() 24 static_assert((std::is_same<typename std::tuple_element<1, C>::type, Exp>::value), ""); in test() 25 static_assert((std::is_same<typename std::tuple_element<2, C>::type, Exp>::value), ""); in test() 30 static_assert((std::is_same<typename std::tuple_element<0, C>::type, Exp>::value), ""); in test() 31 static_assert((std::is_same<typename std::tuple_element<1, C>::type, Exp>::value), ""); in test() 32 static_assert((std::is_same<typename std::tuple_element<2, C>::type, Exp>::value), ""); in test() 37 static_assert((std::is_same<typename std::tuple_element<0, C>::type, Exp>::value), ""); in test() 38 static_assert((std::is_same<typename std::tuple_element<1, C>::type, Exp>::value), ""); in test() 39 static_assert((std::is_same<typename std::tuple_element<2, C>::type, Exp>::value), ""); in test() 44 static_assert((std::is_same<typename std::tuple_element<0, C>::type, Exp>::value), ""); in test() [all …]
|
/external/llvm-project/libcxx/test/std/containers/sequences/array/array.tuple/ |
D | tuple_element.pass.cpp | 24 static_assert((std::is_same<typename std::tuple_element<0, C>::type, Exp>::value), ""); in test() 25 static_assert((std::is_same<typename std::tuple_element<1, C>::type, Exp>::value), ""); in test() 26 static_assert((std::is_same<typename std::tuple_element<2, C>::type, Exp>::value), ""); in test() 31 static_assert((std::is_same<typename std::tuple_element<0, C>::type, Exp>::value), ""); in test() 32 static_assert((std::is_same<typename std::tuple_element<1, C>::type, Exp>::value), ""); in test() 33 static_assert((std::is_same<typename std::tuple_element<2, C>::type, Exp>::value), ""); in test() 38 static_assert((std::is_same<typename std::tuple_element<0, C>::type, Exp>::value), ""); in test() 39 static_assert((std::is_same<typename std::tuple_element<1, C>::type, Exp>::value), ""); in test() 40 static_assert((std::is_same<typename std::tuple_element<2, C>::type, Exp>::value), ""); in test() 45 static_assert((std::is_same<typename std::tuple_element<0, C>::type, Exp>::value), ""); in test() [all …]
|
/external/llvm-project/libcxx/test/std/utilities/utility/pairs/pair.astuple/ |
D | tuple_element.pass.cpp | 26 static_assert((std::is_same<typename std::tuple_element<0, P>::type, Exp1>::value), ""); in test() 27 static_assert((std::is_same<typename std::tuple_element<1, P>::type, Exp2>::value), ""); in test() 33 static_assert((std::is_same<typename std::tuple_element<0, P>::type, Exp1>::value), ""); in test() 34 static_assert((std::is_same<typename std::tuple_element<1, P>::type, Exp2>::value), ""); in test() 40 static_assert((std::is_same<typename std::tuple_element<0, P>::type, Exp1>::value), ""); in test() 41 static_assert((std::is_same<typename std::tuple_element<1, P>::type, Exp2>::value), ""); in test() 47 static_assert((std::is_same<typename std::tuple_element<0, P>::type, Exp1>::value), ""); in test() 48 static_assert((std::is_same<typename std::tuple_element<1, P>::type, Exp2>::value), ""); in test()
|
/external/libcxx/test/std/utilities/utility/pairs/pair.astuple/ |
D | tuple_element.pass.cpp | 25 static_assert((std::is_same<typename std::tuple_element<0, P>::type, Exp1>::value), ""); in test() 26 static_assert((std::is_same<typename std::tuple_element<1, P>::type, Exp2>::value), ""); in test() 32 static_assert((std::is_same<typename std::tuple_element<0, P>::type, Exp1>::value), ""); in test() 33 static_assert((std::is_same<typename std::tuple_element<1, P>::type, Exp2>::value), ""); in test() 39 static_assert((std::is_same<typename std::tuple_element<0, P>::type, Exp1>::value), ""); in test() 40 static_assert((std::is_same<typename std::tuple_element<1, P>::type, Exp2>::value), ""); in test() 46 static_assert((std::is_same<typename std::tuple_element<0, P>::type, Exp1>::value), ""); in test() 47 static_assert((std::is_same<typename std::tuple_element<1, P>::type, Exp2>::value), ""); in test()
|
/external/llvm-project/clang/test/CXX/dcl.decl/dcl.decomp/ |
D | p3.cpp | 45 namespace std { template<size_t, typename> struct tuple_element; } // expected-note 2{{here}} 51 template<> struct std::tuple_element<0, A> { typedef float type; }; struct in std 57 template<> struct std::tuple_element<1, A> { typedef float &type; }; struct in std 58 template<> struct std::tuple_element<2, A> { typedef const float &type; }; struct in std 61 template<int N> struct std::tuple_element<N, B> { typedef int type[N +1 ]; }; struct in std 64 template<size_t N, typename T> struct std::tuple_element<N, const T> { struct in std 65 typedef const typename std::tuple_element<N, T>::type type; argument 132 template<> struct std::tuple_element<0, C> { typedef int type; }; argument 152 template<> struct std::tuple_element<0, D> { typedef D::get<0> type; }; argument 162 template<> struct std::tuple_element<0, E> { typedef int type; }; argument [all …]
|
/external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
D | example-tuple.cpp | 155 template<int I, typename Tuple> struct tuple_element; 158 struct tuple_element<I, tuple<Head, Tail...> > { struct 159 typedef typename tuple_element<I-1, tuple<Tail...> >::type type; argument 163 struct tuple_element<0, tuple<Head, Tail...> > { struct 167 int check_tuple_element_0[is_same<tuple_element<0, tuple<int&, float, double>>::type, argument 170 int check_tuple_element_1[is_same<tuple_element<1, tuple<int&, float, double>>::type, 173 int check_tuple_element_2[is_same<tuple_element<2, tuple<int&, float, double>>::type, 180 typedef typename tuple_element<I-1, tuple<Values...> >::type Element; 199 typename tuple_element<I, tuple<Values...> >::type >::type 205 typename tuple_element<I, tuple<Values...> >::type >::type
|
D | example-bind.cpp | 121 template<int I, typename Tuple> struct tuple_element; 124 struct tuple_element<I, tuple<Head, Tail...> > { struct 125 typedef typename tuple_element<I-1, tuple<Tail...> >::type type; argument 129 struct tuple_element<0, tuple<Head, Tail...> > { struct 137 typedef typename tuple_element<I-1, tuple<Values...> >::type Element; argument 156 typename tuple_element<I, tuple<Values...> >::type >::type 162 typename tuple_element<I, tuple<Values...> >::type >::type 271 typedef typename tuple_element<I, tuple<Values...> >::type type;
|
/external/llvm-project/clang/test/CXX/temp/temp.decls/temp.variadic/ |
D | example-tuple.cpp | 155 template<int I, typename Tuple> struct tuple_element; 158 struct tuple_element<I, tuple<Head, Tail...> > { struct 159 typedef typename tuple_element<I-1, tuple<Tail...> >::type type; argument 163 struct tuple_element<0, tuple<Head, Tail...> > { struct 167 int check_tuple_element_0[is_same<tuple_element<0, tuple<int&, float, double>>::type, argument 170 int check_tuple_element_1[is_same<tuple_element<1, tuple<int&, float, double>>::type, 173 int check_tuple_element_2[is_same<tuple_element<2, tuple<int&, float, double>>::type, 180 typedef typename tuple_element<I-1, tuple<Values...> >::type Element; 199 typename tuple_element<I, tuple<Values...> >::type >::type 205 typename tuple_element<I, tuple<Values...> >::type >::type
|
D | example-bind.cpp | 121 template<int I, typename Tuple> struct tuple_element; 124 struct tuple_element<I, tuple<Head, Tail...> > { struct 125 typedef typename tuple_element<I-1, tuple<Tail...> >::type type; argument 129 struct tuple_element<0, tuple<Head, Tail...> > { struct 137 typedef typename tuple_element<I-1, tuple<Values...> >::type Element; argument 156 typename tuple_element<I, tuple<Values...> >::type >::type 162 typename tuple_element<I, tuple<Values...> >::type >::type 271 typedef typename tuple_element<I, tuple<Values...> >::type type;
|
/external/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/ |
D | tuple_element.pass.cpp | 29 static_assert((std::is_same<typename std::tuple_element<N, T>::type, U>::value), ""); in test() 30 … static_assert((std::is_same<typename std::tuple_element<N, const T>::type, const U>::value), ""); in test() 31 …static_assert((std::is_same<typename std::tuple_element<N, volatile T>::type, volatile U>::value),… in test() 32 …static_assert((std::is_same<typename std::tuple_element<N, const volatile T>::type, const volatile… in test()
|
D | tuple_element.fail.cpp | 27 using E1 = typename std::tuple_element<1, T &>::type; // expected-error{{undefined template}} in main() 28 using E2 = typename std::tuple_element<3, T>::type; in main() 29 using E3 = typename std::tuple_element<4, T const>::type; in main()
|
D | tuple.include.utility.pass.cpp | 37 static_assert((std::is_same<typename std::tuple_element<idx, T>::type, U>::value), ""); in test() 38 …static_assert((std::is_same<typename std::tuple_element<idx, const T>::type, const U>::value), ""); in test() 39 …static_assert((std::is_same<typename std::tuple_element<idx, volatile T>::type, volatile U>::value… in test() 40 …static_assert((std::is_same<typename std::tuple_element<idx, const volatile T>::type, const volati… in test()
|
D | tuple.include.array.pass.cpp | 38 static_assert((std::is_same<typename std::tuple_element<idx, T>::type, U>::value), ""); in test() 39 …static_assert((std::is_same<typename std::tuple_element<idx, const T>::type, const U>::value), ""); in test() 40 …static_assert((std::is_same<typename std::tuple_element<idx, volatile T>::type, volatile U>::value… in test() 41 …static_assert((std::is_same<typename std::tuple_element<idx, const volatile T>::type, const volati… in test()
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/ |
D | tuple_element.pass.cpp | 31 static_assert((std::is_same<typename std::tuple_element<N, T>::type, U>::value), ""); in test() 32 … static_assert((std::is_same<typename std::tuple_element<N, const T>::type, const U>::value), ""); in test() 33 …static_assert((std::is_same<typename std::tuple_element<N, volatile T>::type, volatile U>::value),… in test() 34 …static_assert((std::is_same<typename std::tuple_element<N, const volatile T>::type, const volatile… in test()
|
D | tuple_element.fail.cpp | 29 using E1 = typename std::tuple_element<1, T &>::type; // expected-error{{undefined template}} in main() 30 using E2 = typename std::tuple_element<3, T>::type; in main() 31 using E3 = typename std::tuple_element<4, T const>::type; in main()
|
D | tuple.include.array.pass.cpp | 38 static_assert((std::is_same<typename std::tuple_element<idx, T>::type, U>::value), ""); in test() 39 …static_assert((std::is_same<typename std::tuple_element<idx, const T>::type, const U>::value), ""); in test() 40 …static_assert((std::is_same<typename std::tuple_element<idx, volatile T>::type, volatile U>::value… in test() 41 …static_assert((std::is_same<typename std::tuple_element<idx, const volatile T>::type, const volati… in test()
|
D | tuple.include.utility.pass.cpp | 36 static_assert((std::is_same<typename std::tuple_element<idx, T>::type, U>::value), ""); in test() 37 …static_assert((std::is_same<typename std::tuple_element<idx, const T>::type, const U>::value), ""); in test() 38 …static_assert((std::is_same<typename std::tuple_element<idx, volatile T>::type, volatile U>::value… in test() 39 …static_assert((std::is_same<typename std::tuple_element<idx, const volatile T>::type, const volati… in test()
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/ |
D | forward_as_tuple.pass.cpp | 35 static_assert(std::is_same<typename std::tuple_element<0, Tuple>::type, int&&>::value, ""); in test1a() 44 static_assert(std::is_same<typename std::tuple_element<0, Tuple>::type, int&>::value, ""); in test1b() 53 static_assert(std::is_same<typename std::tuple_element<0, Tuple>::type, double&>::value, ""); in test2a() 54 static_assert(std::is_same<typename std::tuple_element<1, Tuple>::type, char&>::value, ""); in test2a()
|
/external/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/ |
D | forward_as_tuple.pass.cpp | 34 static_assert(std::is_same<typename std::tuple_element<0, Tuple>::type, int&&>::value, ""); in test1a() 43 static_assert(std::is_same<typename std::tuple_element<0, Tuple>::type, int&>::value, ""); in test1b() 52 static_assert(std::is_same<typename std::tuple_element<0, Tuple>::type, double&>::value, ""); in test2a() 53 static_assert(std::is_same<typename std::tuple_element<1, Tuple>::type, char&>::value, ""); in test2a()
|
/external/libabigail/tests/data/test-diff-dwarf/ |
D | test42-PR21296-clanggcc.cc | 175 struct tuple_element; 182 struct tuple_element<__i, tuple<_Head, _Tail...> > struct 183 : tuple_element<__i - 1, tuple<_Tail...> > { }; 189 struct tuple_element<0, tuple<_Head, _Tail...> > struct 195 struct tuple_element<__i, const _Tp> struct 197 typedef const typename tuple_element<__i, _Tp>::type type; argument 211 typename tuple_element<__i, tuple<_Elements...>>::type
|
/external/libcxx/include/ |
D | __tuple | 57 template <size_t _Ip, class _Tp> class _LIBCPP_TEMPLATE_VIS tuple_element; 60 class _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, const _Tp> 63 typedef typename add_const<typename tuple_element<_Ip, _Tp>::type>::type type; 67 class _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, volatile _Tp> 70 typedef typename add_volatile<typename tuple_element<_Ip, _Tp>::type>::type type; 74 class _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, const volatile _Tp> 77 typedef typename add_cv<typename tuple_element<_Ip, _Tp>::type>::type type; 175 typename tuple_element<_Ip, tuple<_Tp...> >::type& 180 const typename tuple_element<_Ip, tuple<_Tp...> >::type& 185 typename tuple_element<_Ip, tuple<_Tp...> >::type&& [all …]
|
D | tuple | 91 template <size_t I, class T> class tuple_element; // undefined 92 template <size_t I, class... T> class tuple_element<I, tuple<T...>>; 94 using tuple_element_t = typename tuple_element <I, T>::type; // C++14 98 typename tuple_element<I, tuple<T...>>::type& 101 const typename tuple_element<I, tuple<T...>>::type& 104 typename tuple_element<I, tuple<T...>>::type&& 107 const typename tuple_element<I, tuple<T...>>::type&& 405 …le_impl(_Tuple&& __t) _NOEXCEPT_((__all<is_nothrow_constructible<_Tp, typename tuple_element<_Indx, 407 : __tuple_leaf<_Indx, _Tp>(_VSTD::forward<typename tuple_element<_Indx, 419 : __tuple_leaf<_Indx, _Tp>(__uses_alloc_ctor<_Tp, _Alloc, typename tuple_element<_Indx, [all …]
|
/external/llvm-project/libcxx/include/ |
D | __tuple | 56 template <size_t _Ip, class _Tp> struct _LIBCPP_TEMPLATE_VIS tuple_element; 59 struct _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, const _Tp> 61 …typedef _LIBCPP_NODEBUG_TYPE typename add_const<typename tuple_element<_Ip, _Tp>::type>::type type; 65 struct _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, volatile _Tp> 67 …typedef _LIBCPP_NODEBUG_TYPE typename add_volatile<typename tuple_element<_Ip, _Tp>::type>::type t… 71 struct _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, const volatile _Tp> 73 typedef _LIBCPP_NODEBUG_TYPE typename add_cv<typename tuple_element<_Ip, _Tp>::type>::type type; 171 typename tuple_element<_Ip, tuple<_Tp...> >::type& 176 const typename tuple_element<_Ip, tuple<_Tp...> >::type& 181 typename tuple_element<_Ip, tuple<_Tp...> >::type&& [all …]
|
/external/llvm-project/clang/test/CodeGenCXX/ |
D | cxx1z-decomposition.cpp | 6 template<size_t, typename> struct tuple_element; 16 template<> struct std::tuple_element<0,B> { using type = X; }; struct in std 17 template<> struct std::tuple_element<1,B> { using type = const int&; }; struct in std
|
/external/llvm-project/clang/test/Parser/ |
D | decomposed-condition.cpp | 5 template<int, typename> struct tuple_element; 15 template<> struct tuple_element<0, Get> { using type = int; }; struct
|