Home
last modified time | relevance | path

Searched refs:tuple_element (Results 1 – 25 of 47) sorted by relevance

12

/llvm-project-15.0.7/libcxx/test/std/containers/sequences/array/array.tuple/
H A Dtuple_element.pass.cpp24 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 …]
H A Dtuple_element.fail.cpp21 std::tuple_element<3, C> foo; // expected-note {{requested here}} in main()
/llvm-project-15.0.7/clang/test/CXX/dcl.decl/dcl.decomp/
H A Dp3.cpp51 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; }; argument
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; }; struct in std
173 template<> struct std::tuple_element<0, ADL::X> { typedef int type; }; struct in std
188 struct std::tuple_element<0, wrap<ET, GTL, GTR>> { struct in std
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/utility/pairs/pair.astuple/
H A Dtuple_element.pass.cpp26 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()
H A Dtuple_element.fail.cpp20 …std::tuple_element<2, T>::type foo; // expected-error@*:* {{Index out of bounds in std::tuple_elem… in main()
/llvm-project-15.0.7/clang/test/CXX/temp/temp.decls/temp.variadic/
H A Dexample-tuple.cpp155 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
H A Dexample-bind.cpp121 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;
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/
H A Dtuple_element.pass.cpp29 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()
H A Dtuple_element.fail.cpp27 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()
H A Dtuple.include.utility.pass.cpp37 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()
H A Dtuple.include.array.pass.cpp38 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()
H A Dtuple.include.ranges.pass.cpp48 static_assert(std::same_as<typename std::tuple_element<I, Range>::type, Expected>); in test_tuple_element()
49 static_assert(std::same_as<typename std::tuple_element<I, const Range>::type, Expected>); in test_tuple_element()
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/
H A Dforward_as_tuple.pass.cpp34 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()
/llvm-project-15.0.7/libcxx/include/
H A D__tuple59 struct _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, const _Tp>
65 struct _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, volatile _Tp>
71 struct _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, const volatile _Tp>
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&&
186 const typename tuple_element<_Ip, tuple<_Tp...> >::type&&
197 typename tuple_element<_Ip, pair<_T1, _T2> >::type&
202 const typename tuple_element<_Ip, pair<_T1, _T2> >::type&
208 typename tuple_element<_Ip, pair<_T1, _T2> >::type&&
[all …]
H A Dutility126 template <size_t I, class T> struct tuple_element;
129 template <class T1, class T2> struct tuple_element<0, pair<T1, T2> >;
130 template <class T1, class T2> struct tuple_element<1, pair<T1, T2> >;
133 typename tuple_element<I, pair<T1, T2> >::type&
137 const typename tuple_element<I, pair<T1, T2> >::type&
141 typename tuple_element<I, pair<T1, T2> >::type&&
145 const typename tuple_element<I, pair<T1, T2> >::type&&
H A Dranges247 template<size_t I, class T> struct tuple_element;
254 struct tuple_element<0, ranges::subrange<I, S, K>> {
259 struct tuple_element<1, ranges::subrange<I, S, K>> {
264 struct tuple_element<0, const ranges::subrange<I, S, K>> {
269 struct tuple_element<1, const ranges::subrange<I, S, K>> {
H A Dtuple151 template <size_t I, class T> struct tuple_element; // undefined
152 template <size_t I, class... T> struct tuple_element<I, tuple<T...>>;
158 typename tuple_element<I, tuple<T...>>::type&
161 const typename tuple_element<I, tuple<T...>>::type&
164 typename tuple_element<I, tuple<T...>>::type&&
167 const typename tuple_element<I, tuple<T...>>::type&&
1352 typename tuple_element<_Ip, tuple<_Tp...> >::type&
1361 const typename tuple_element<_Ip, tuple<_Tp...> >::type&
1370 typename tuple_element<_Ip, tuple<_Tp...> >::type&&
1380 const typename tuple_element<_Ip, tuple<_Tp...> >::type&&
[all …]
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dcxx1z-decomposition.cpp6 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
/llvm-project-15.0.7/clang/test/Analysis/
H A Duninit-structured-binding-tuple.cpp13 struct tuple_element { struct
28 struct tuple_element<0, mock_pair<T1, T2>> { struct
33 struct tuple_element<1, mock_pair<T1, T2>> { struct
38 using tuple_element_t = typename tuple_element<I, T>::type;
93 struct tuple_element<I, name> { \
282 struct tuple_element<0, MixedTest> { struct
287 struct tuple_element<1, MixedTest> { struct
292 struct tuple_element<2, MixedTest> { struct
297 using tuple_element_t = typename tuple_element<I, T>::type;
H A Dlive-bindings-test.cpp10 template <size_t I, class T> class tuple_element;
106 struct tuple_element<N, Mytuple> { struct
/llvm-project-15.0.7/clang/test/Parser/
H A Ddecomposed-condition.cpp5 template<int, typename> struct tuple_element;
15 template<> struct tuple_element<0, Get> { using type = int; }; struct
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dclass-template-decl.cpp96 template <unsigned, class _Tp> class tuple_element;
101 class tuple_element<0, pair<_T1, _T2> > class
/llvm-project-15.0.7/libcxx/include/__ranges/
H A Dsubrange.h269 struct tuple_element<0, ranges::subrange<_Ip, _Sp, _Kp>> {
274 struct tuple_element<1, ranges::subrange<_Ip, _Sp, _Kp>> {
279 struct tuple_element<0, const ranges::subrange<_Ip, _Sp, _Kp>> {
284 struct tuple_element<1, const ranges::subrange<_Ip, _Sp, _Kp>> {
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/utility/pairs/pairs.pair/
H A Dpair.tuple_element.fail.cpp21 std::tuple_element<2, P>::type foo; // expected-note {{requested here}} in main()
/llvm-project-15.0.7/libcxx/include/__utility/
H A Dpair.h451 struct _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, pair<_T1, _T2> >
457 struct _LIBCPP_TEMPLATE_VIS tuple_element<0, pair<_T1, _T2> >
463 struct _LIBCPP_TEMPLATE_VIS tuple_element<1, pair<_T1, _T2> >
532 typename tuple_element<_Ip, pair<_T1, _T2> >::type&
540 const typename tuple_element<_Ip, pair<_T1, _T2> >::type&
549 typename tuple_element<_Ip, pair<_T1, _T2> >::type&&
557 const typename tuple_element<_Ip, pair<_T1, _T2> >::type&&

12