Home
last modified time | relevance | path

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

1234

/external/libcxx/test/std/containers/sequences/array/array.tuple/
Dtuple_element.pass.cpp23 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/libcxx/test/std/utilities/utility/pairs/pair.astuple/
Dtuple_element.pass.cpp25 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/clang/test/CXX/temp/temp.decls/temp.variadic/
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
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;
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/
Dtuple_element.pass.cpp31 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()
Dtuple_element.fail.cpp29 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()
Dtuple.include.utility.pass.cpp36 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()
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()
Dtuple_size_structured_bindings.pass.cpp108 class std::tuple_element<0, Test> { class in std
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/
Dforward_as_tuple.pass.cpp35 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/libcxx/include/
D__tuple57 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 …]
Dtuple91 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&&
409 …le_impl(_Tuple&& __t) _NOEXCEPT_((__all<is_nothrow_constructible<_Tp, typename tuple_element<_Indx,
411 : __tuple_leaf<_Indx, _Tp>(_VSTD::forward<typename tuple_element<_Indx,
423 : __tuple_leaf<_Indx, _Tp>(__uses_alloc_ctor<_Tp, _Alloc, typename tuple_element<_Indx,
[all …]
Dutility105 template <size_t I, class T> class tuple_element;
108 template <class T1, class T2> struct tuple_element<0, pair<T1, T2> >;
109 template <class T1, class T2> struct tuple_element<1, pair<T1, T2> >;
112 typename tuple_element<I, pair<T1, T2> >::type&
116 const typename tuple_element<I, pair<T1, T2> >::type&
120 typename tuple_element<I, pair<T1, T2> >::type&&
124 const typename tuple_element<I, pair<T1, T2> >::type&&
658 class _LIBCPP_TEMPLATE_VIS tuple_element<0, pair<_T1, _T2> >
665 class _LIBCPP_TEMPLATE_VIS tuple_element<1, pair<_T1, _T2> >
739 typename tuple_element<_Ip, pair<_T1, _T2> >::type&
[all …]
Darray92 template <size_t I, class T> class tuple_element;
94 template <size_t I, class T, size_t N> struct tuple_element<I, array<T, N>>;
295 class _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, array<_Tp, _Size> >
/external/vulkan-validation-layers/tests/gtest-1.7.0/test/
Dgtest-tuple_test.cc41 using ::std::tr1::tuple_element;
47 StaticAssertTypeEq<int, tuple_element<0, tuple<int, char> >::type>(); in TEST()
48 StaticAssertTypeEq<int&, tuple_element<1, tuple<double, int&> >::type>(); in TEST()
49 StaticAssertTypeEq<bool, tuple_element<2, tuple<double, int, bool> >::type>(); in TEST()
/external/google-breakpad/src/testing/gtest/test/
Dgtest-tuple_test.cc41 using ::std::tr1::tuple_element;
47 StaticAssertTypeEq<int, tuple_element<0, tuple<int, char> >::type>(); in TEST()
48 StaticAssertTypeEq<int&, tuple_element<1, tuple<double, int&> >::type>(); in TEST()
49 StaticAssertTypeEq<bool, tuple_element<2, tuple<double, int, bool> >::type>(); in TEST()
/external/googletest/googletest/test/
Dgtest-tuple_test.cc41 using ::std::tr1::tuple_element;
47 StaticAssertTypeEq<int, tuple_element<0, tuple<int, char> >::type>(); in TEST()
48 StaticAssertTypeEq<int&, tuple_element<1, tuple<double, int&> >::type>(); in TEST()
49 StaticAssertTypeEq<bool, tuple_element<2, tuple<double, int, bool> >::type>(); in TEST()
/external/v8/testing/gtest/test/
Dgtest-tuple_test.cc41 using ::std::tr1::tuple_element;
47 StaticAssertTypeEq<int, tuple_element<0, tuple<int, char> >::type>(); in TEST()
48 StaticAssertTypeEq<int&, tuple_element<1, tuple<double, int&> >::type>(); in TEST()
49 StaticAssertTypeEq<bool, tuple_element<2, tuple<double, int, bool> >::type>(); in TEST()
/external/protobuf/gtest/test/
Dgtest-tuple_test.cc41 using ::std::tr1::tuple_element;
47 StaticAssertTypeEq<int, tuple_element<0, tuple<int, char> >::type>(); in TEST()
48 StaticAssertTypeEq<int&, tuple_element<1, tuple<double, int&> >::type>(); in TEST()
49 StaticAssertTypeEq<bool, tuple_element<2, tuple<double, int, bool> >::type>(); in TEST()
/external/clang/test/SemaTemplate/
Dclass-template-decl.cpp88 template <unsigned, class _Tp> class tuple_element;
93 class tuple_element<0, pair<_T1, _T2> > class
/external/v8/testing/gtest/include/gtest/
Dgtest-printers.h878 struct tuple_element : ::std::tr1::tuple_element<I, Tuple> {}; struct
882 const typename ::std::tr1::tuple_element<I, Tuple>::type>::type get( in get()
898 struct tuple_element : ::std::tuple_element<I, Tuple> {};
901 static const typename ::std::tuple_element<I, Tuple>::type& get(
931 typename TuplePolicy<Tuple>::template tuple_element<N - 1>::type>
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/
Dgtest-printers.h878 struct tuple_element : ::std::tr1::tuple_element<I, Tuple> {}; struct
882 const typename ::std::tr1::tuple_element<I, Tuple>::type>::type get( in get()
898 struct tuple_element : ::std::tuple_element<I, Tuple> {};
901 static const typename ::std::tuple_element<I, Tuple>::type& get(
931 typename TuplePolicy<Tuple>::template tuple_element<N - 1>::type>
/external/googletest/googletest/include/gtest/
Dgtest-printers.h891 struct tuple_element : ::std::tr1::tuple_element<I, Tuple> {}; struct
895 const typename ::std::tr1::tuple_element<I, Tuple>::type>::type get( in get()
911 struct tuple_element : ::std::tuple_element<I, Tuple> {};
914 static const typename ::std::tuple_element<I, Tuple>::type& get(
944 typename TuplePolicy<Tuple>::template tuple_element<N - 1>::type>
/external/libchrome/base/
Dtuple.h110 typename std::tuple_element<I, std::tuple<Ts...>>::type&& get(
112 using ElemType = typename std::tuple_element<I, std::tuple<Ts...>>::type;
/external/mesa3d/src/gtest/include/gtest/internal/
Dgtest-tuple.h.pump113 // A helper for implementing tuple_element<k, T>. kIndexValid is true
231 struct tuple_element {
236 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type

1234