Home
last modified time | relevance | path

Searched refs:Tuple (Results 1 – 25 of 137) sorted by relevance

123456

/external/libcxx/test/std/experimental/utilities/tuple/tuple.apply/
Dtypes.pass.cpp100 template <class Tuple>
106 Tuple t{}; in test_void_0()
113 Tuple t{}; in test_void_0()
121 Tuple t{}; in test_void_0()
129 Tuple t{}; in test_void_0()
136 template <class Tuple>
142 Tuple t{1}; in test_void_1()
149 Tuple t{2}; in test_void_1()
157 Tuple t{3}; in test_void_1()
165 Tuple t{4}; in test_void_1()
[all …]
Darg_type.pass.cpp38 template <class Tuple>
42 Tuple t{1, 2}; in test_values()
46 Tuple t{2, 2}; in test_values()
50 Tuple t{2, 3}; in test_values()
54 Tuple t{3, 3}; in test_values()
55 assert(6 == ex::apply(call_with_rvalue_ref, static_cast<Tuple &&>(t))); in test_values()
58 Tuple const t{4, 4}; in test_values()
62 Tuple const t{4, 5}; in test_values()
67 template <class Tuple>
74 Tuple t{x, y}; in test_refs()
[all …]
Dconstexpr_types.pass.cpp46 template <class Tuple>
51 constexpr Tuple t{}; in test_0()
56 constexpr Tuple t{}; in test_0()
62 constexpr Tuple t{}; in test_0()
68 template <class Tuple>
73 constexpr Tuple t{1}; in test_1()
78 constexpr Tuple t{2}; in test_1()
84 constexpr Tuple t{3}; in test_1()
90 template <class Tuple>
95 constexpr Tuple t{1, 2}; in test_2()
[all …]
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/
Dforward_as_tuple.pass.cpp23 template <class Tuple>
25 test0(const Tuple&) in test0() argument
27 static_assert(std::tuple_size<Tuple>::value == 0, ""); in test0()
30 template <class Tuple>
32 test1a(const Tuple& t) in test1a()
34 static_assert(std::tuple_size<Tuple>::value == 1, ""); in test1a()
35 static_assert(std::is_same<typename std::tuple_element<0, Tuple>::type, int&&>::value, ""); in test1a()
39 template <class Tuple>
41 test1b(const Tuple& t) in test1b()
43 static_assert(std::tuple_size<Tuple>::value == 1, ""); in test1b()
[all …]
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/
Dmake_from_tuple.pass.cpp29 template <class Tuple>
34 Tuple args;
40 template <template <class ...> class Tuple, class ...Types>
41 struct ConstructibleFromTuple<Tuple<Types...>> {
47 Tuple<std::decay_t<Types>...> args;
62 template <class Tuple>
63 constexpr bool do_constexpr_test(Tuple&& tup) { in do_constexpr_test()
64 using RawTuple = std::decay_t<Tuple>; in do_constexpr_test()
66 return std::make_from_tuple<Tp>(std::forward<Tuple>(tup)).args == tup; in do_constexpr_test()
75 template <class ...ExpectTypes, class Tuple>
[all …]
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorSyclTuple.h40 struct Tuple {};
47 struct Tuple<T, Ts...> {
48 Tuple(T t, Ts... ts) : head(t), tail(ts...) {}
50 Tuple<Ts...> tail;
64 struct ElemTypeHolder<0, Tuple<T, Ts...> > {
75 struct ElemTypeHolder<k, Tuple<T, Ts...> > {
76 typedef typename ElemTypeHolder<k - 1, Tuple<Ts...> >::type type;
88 typename StaticIf<k == 0, CVQual typename ElemTypeHolder<0, Tuple<Ts...> >::type &>::type \
89 get(CVQual Tuple<Ts...> &t) { \
106 typename StaticIf<k != 0, CVQual typename ElemTypeHolder<k, Tuple<T, Ts...> >::type &>::type \
[all …]
/external/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/
Denable_reduced_arity_initialization_extension.pass.cpp44 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef
45 static_assert(!std::is_constructible<Tuple, MO>::value, ""); in test_default_constructible_extension_sfinae()
46 static_assert(std::is_constructible<Tuple, MO, ND>::value, ""); in test_default_constructible_extension_sfinae()
47 static_assert(test_convertible<Tuple, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
50 typedef std::tuple<MO, MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef
51 static_assert(!std::is_constructible<Tuple, MO, MO>::value, ""); in test_default_constructible_extension_sfinae()
52 static_assert(std::is_constructible<Tuple, MO, MO, ND>::value, ""); in test_default_constructible_extension_sfinae()
53 static_assert(test_convertible<Tuple, MO, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
57 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef
58 typedef std::tuple<MO, Tuple, MO, MO> NestedTuple; in test_default_constructible_extension_sfinae()
[all …]
Ddisable_reduced_arity_initialization_extension.pass.cpp45 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef
46 static_assert(!std::is_constructible<Tuple, MO>::value, ""); in test_default_constructible_extension_sfinae()
47 static_assert(std::is_constructible<Tuple, MO, ND>::value, ""); in test_default_constructible_extension_sfinae()
48 static_assert(test_convertible<Tuple, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
51 typedef std::tuple<MO, MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef
52 static_assert(!std::is_constructible<Tuple, MO, MO>::value, ""); in test_default_constructible_extension_sfinae()
53 static_assert(std::is_constructible<Tuple, MO, MO, ND>::value, ""); in test_default_constructible_extension_sfinae()
54 static_assert(test_convertible<Tuple, MO, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
58 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef
59 typedef std::tuple<MO, Tuple, MO, MO> NestedTuple; in test_default_constructible_extension_sfinae()
[all …]
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/
Dtuple_size_v.pass.cpp20 template <class Tuple, int Expect>
23 static_assert(std::tuple_size_v<Tuple> == Expect, ""); in test()
24 static_assert(std::tuple_size_v<Tuple> == std::tuple_size<Tuple>::value, ""); in test()
25 static_assert(std::tuple_size_v<Tuple const> == std::tuple_size<Tuple>::value, ""); in test()
26 static_assert(std::tuple_size_v<Tuple volatile> == std::tuple_size<Tuple>::value, ""); in test()
27 static_assert(std::tuple_size_v<Tuple const volatile> == std::tuple_size<Tuple>::value, ""); in test()
/external/libcxx/test/std/experimental/utilities/tuple/
Dtuple_size_v.pass.cpp22 template <class Tuple, int Expect>
25 static_assert(ex::tuple_size_v<Tuple> == Expect, ""); in test()
26 static_assert(ex::tuple_size_v<Tuple> == std::tuple_size<Tuple>::value, ""); in test()
27 static_assert(ex::tuple_size_v<Tuple const> == std::tuple_size<Tuple>::value, ""); in test()
28 static_assert(ex::tuple_size_v<Tuple volatile> == std::tuple_size<Tuple>::value, ""); in test()
29 static_assert(ex::tuple_size_v<Tuple const volatile> == std::tuple_size<Tuple>::value, ""); in test()
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/
Dp12.cpp7 template<class ...> struct Tuple { }; struct
8 template<class ... Types> int &g(Tuple<Types ...>); // #1
9 template<class T1, class ... Types> float &g(Tuple<T1, Types ...>); // #2
10 template<class T1, class ... Types> double &g(Tuple<T1, Types& ...>); // #3
13 int &ir1 = g(Tuple<>()); in test_g()
14 float &fr1 = g(Tuple<int, float>()); in test_g()
15 double &dr1 = g(Tuple<int, float&>()); in test_g()
16 double &dr2 = g(Tuple<int>()); in test_g()
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
DUTypes.pass.cpp47 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() typedef
50 Tuple, in test_default_constructible_extension_sfinae()
55 Tuple, in test_default_constructible_extension_sfinae()
60 typedef std::tuple<MoveOnly, MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() typedef
63 Tuple, in test_default_constructible_extension_sfinae()
68 Tuple, in test_default_constructible_extension_sfinae()
74 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() typedef
75 typedef std::tuple<MoveOnly, Tuple, MoveOnly, MoveOnly> NestedTuple; in test_default_constructible_extension_sfinae()
84 MoveOnly, Tuple, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae()
90 typedef std::tuple<MoveOnly, int> Tuple; in test_default_constructible_extension_sfinae() typedef
[all …]
DPR22806_constrain_tuple_like_ctor.pass.cpp31 template <class Tuple, class = uncvref_t<Tuple>>
34 template <class Tuple, class ...Args>
35 struct IsTuple<Tuple, std::tuple<Args...>> : std::true_type {};
44 template <class Tuple, class = typename std::enable_if<IsTuple<Tuple>::value>::type>
45 explicit ConstructibleFromTupleAndInt(Tuple&&) : state(FromTuple) {} in ConstructibleFromTupleAndInt()
57 template <class Tuple, class = typename std::enable_if<IsTuple<Tuple>::value>::type>
58 ConvertibleFromTupleAndInt(Tuple&&) : state(FromTuple) {} in ConvertibleFromTupleAndInt()
/external/clang/test/CXX/temp/temp.decls/temp.variadic/
Dp1.cpp3 template<class ...Types> struct Tuple;
5 Tuple<> *t0;
6 Tuple<int> *t1;
7 Tuple<int, char> *t2a;
8 Tuple<int, float> *t2b = t2a; // expected-error{{cannot initialize a variable of type 'Tuple<int, f…
9 Tuple<int, float, double> *t3;
/external/protobuf/gtest/include/gtest/internal/
Dgtest-tuple.h139 template <bool kIndexValid, int kIndex, class Tuple>
708 template <typename Tuple> struct tuple_size;
743 template <int k, class Tuple>
746 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
749 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
758 template <class Tuple>
759 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
760 Field(Tuple& t) { return t.f0_; } // NOLINT
762 template <class Tuple>
763 static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
[all …]
/external/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-tuple.h139 template <bool kIndexValid, int kIndex, class Tuple>
708 template <typename Tuple> struct tuple_size;
743 template <int k, class Tuple>
746 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
749 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
758 template <class Tuple>
759 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
760 Field(Tuple& t) { return t.f0_; } // NOLINT
762 template <class Tuple>
763 static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
[all …]
/external/google-breakpad/src/testing/gtest/include/gtest/internal/
Dgtest-tuple.h141 template <bool kIndexValid, int kIndex, class Tuple>
730 template <typename Tuple> struct tuple_size;
787 template <int k, class Tuple>
790 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
793 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
802 template <class Tuple>
803 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
804 Field(Tuple& t) { return t.f0_; } // NOLINT
806 template <class Tuple>
807 static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
[all …]
/external/vulkan-validation-layers/tests/gtest-1.7.0/include/gtest/internal/
Dgtest-tuple.h141 template <bool kIndexValid, int kIndex, class Tuple>
730 template <typename Tuple> struct tuple_size;
787 template <int k, class Tuple>
790 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
793 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
802 template <class Tuple>
803 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
804 Field(Tuple& t) { return t.f0_; } // NOLINT
806 template <class Tuple>
807 static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
[all …]
/external/mesa3d/src/gtest/include/gtest/internal/
Dgtest-tuple.h141 template <bool kIndexValid, int kIndex, class Tuple>
730 template <typename Tuple> struct tuple_size;
787 template <int k, class Tuple>
790 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
793 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
802 template <class Tuple>
803 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
804 Field(Tuple& t) { return t.f0_; } // NOLINT
806 template <class Tuple>
807 static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
[all …]
/external/googletest/googletest/include/gtest/internal/
Dgtest-tuple.h149 template <bool kIndexValid, int kIndex, class Tuple>
738 template <typename Tuple> struct tuple_size;
795 template <int k, class Tuple>
798 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
801 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
810 template <class Tuple>
811 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
812 Field(Tuple& t) { return t.f0_; } // NOLINT
814 template <class Tuple>
815 static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
[all …]
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/include/gtest/internal/
Dgtest-tuple.h139 template <bool kIndexValid, int kIndex, class Tuple>
708 template <typename Tuple> struct tuple_size;
743 template <int k, class Tuple>
746 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
749 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
758 template <class Tuple>
759 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
760 Field(Tuple& t) { return t.f0_; } // NOLINT
762 template <class Tuple>
763 static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
[all …]
/external/v8/testing/gtest/include/gtest/internal/
Dgtest-tuple.h149 template <bool kIndexValid, int kIndex, class Tuple>
738 template <typename Tuple> struct tuple_size;
795 template <int k, class Tuple>
798 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
801 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
810 template <class Tuple>
811 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
812 Field(Tuple& t) { return t.f0_; } // NOLINT
814 template <class Tuple>
815 static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
[all …]
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/internal/
Dgtest-tuple.h149 template <bool kIndexValid, int kIndex, class Tuple>
738 template <typename Tuple> struct tuple_size;
795 template <int k, class Tuple>
798 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
801 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
810 template <class Tuple>
811 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
812 Field(Tuple& t) { return t.f0_; } // NOLINT
814 template <class Tuple>
815 static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
[all …]
/external/eigen/unsupported/test/
Dcxx11_tensor_argmax.cpp17 using Eigen::Tuple;
26 Tensor<Tuple<DenseIndex, float>, 4, DataLayout> index_tuples(2,3,5,7); in test_simple_index_tuples()
30 const Tuple<DenseIndex, float>& v = index_tuples.coeff(n); in test_simple_index_tuples()
43 Tensor<Tuple<DenseIndex, float>, 4, DataLayout> index_tuples(2,3,5,7); in test_index_tuples_dim()
48 const Tuple<DenseIndex, float>& v = index_tuples(n); //(i, j, k, l); in test_index_tuples_dim()
61 Tensor<Tuple<DenseIndex, float>, 4, DataLayout> index_tuples(2,3,5,7); in test_argmax_tuple_reducer()
64 Tensor<Tuple<DenseIndex, float>, 0, DataLayout> reduced; in test_argmax_tuple_reducer()
67 dims, internal::ArgMaxTupleReducer<Tuple<DenseIndex, float> >()); in test_argmax_tuple_reducer()
75 Tensor<Tuple<DenseIndex, float>, 1, DataLayout> reduced_by_dims(7); in test_argmax_tuple_reducer()
77 reduce_dims, internal::ArgMaxTupleReducer<Tuple<DenseIndex, float> >()); in test_argmax_tuple_reducer()
[all …]
/external/llvm/lib/Fuzzer/
DFuzzerFnAdapter.h112 UnpackImpl(const uint8_t *Data, size_t Size, TupleT *Tuple) { in UnpackImpl() argument
119 UnpackImpl(const uint8_t *Data, size_t Size, TupleT *Tuple) {
120 size_t NewSize = UnpackSingle(Data, Size, &std::get<N>(*Tuple));
125 return UnpackImpl<N + 1, TupleT>(Data + (Size - NewSize), NewSize, Tuple);
130 bool Unpack(const uint8_t *Data, size_t Size, std::tuple<Args...> *Tuple) { in Unpack() argument
131 return UnpackImpl<0, std::tuple<Args...>>(Data, Size, Tuple); in Unpack()
171 typename FnTraits<Fn>::ArgsTupleT Tuple;
172 if (!Unpack(Data, Size, &Tuple))
175 Apply(F, Tuple);

123456