/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/ |
D | forward_as_tuple.pass.cpp | 23 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/ |
D | make_from_tuple.pass.cpp | 29 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/ |
D | TensorSyclTuple.h | 40 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/ |
D | enable_reduced_arity_initialization_extension.pass.cpp | 44 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 …]
|
D | disable_reduced_arity_initialization_extension.pass.cpp | 45 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/libchrome/base/ |
D | tuple.h | 47 template <typename ObjT, typename Method, typename Tuple, size_t... Ns> 50 Tuple&& args, in DispatchToMethodImpl() 52 (obj->*method)(std::get<Ns>(std::forward<Tuple>(args))...); in DispatchToMethodImpl() 55 template <typename ObjT, typename Method, typename Tuple> 58 Tuple&& args) { in DispatchToMethod() 59 constexpr size_t size = std::tuple_size<std::decay_t<Tuple>>::value; in DispatchToMethod() 60 DispatchToMethodImpl(obj, method, std::forward<Tuple>(args), in DispatchToMethod() 66 template <typename Function, typename Tuple, size_t... Ns> 68 Tuple&& args, in DispatchToFunctionImpl() 70 (*function)(std::get<Ns>(std::forward<Tuple>(args))...); in DispatchToFunctionImpl() [all …]
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/ |
D | tuple_size_v.pass.cpp | 20 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/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/ |
D | p12.cpp | 7 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/libchrome/ipc/ |
D | ipc_message_templates.h | 23 template <typename Tuple, size_t... Ns> 24 auto TupleForwardImpl(Tuple&& tuple, std::index_sequence<Ns...>) -> decltype( 25 std::forward_as_tuple(std::get<Ns>(std::forward<Tuple>(tuple))...)) { 26 return std::forward_as_tuple(std::get<Ns>(std::forward<Tuple>(tuple))...); 38 template <typename Tuple> 39 auto TupleForward(Tuple&& tuple) -> decltype(TupleForwardImpl( 40 std::forward<Tuple>(tuple), 41 std::make_index_sequence<std::tuple_size<std::decay_t<Tuple>>::value>())) { 43 std::forward<Tuple>(tuple), 44 std::make_index_sequence<std::tuple_size<std::decay_t<Tuple>>::value>()); [all …]
|
/external/llvm/utils/unittest/googletest/include/gtest/internal/ |
D | gtest-tuple.h | 139 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/mesa3d/src/gtest/include/gtest/internal/ |
D | gtest-tuple.h | 149 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/google-breakpad/src/testing/gtest/include/gtest/internal/ |
D | gtest-tuple.h | 141 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/libaom/libaom/third_party/googletest/src/googletest/include/gtest/internal/ |
D | gtest-tuple.h | 149 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/ |
D | gtest-tuple.h | 139 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/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/include/gtest/internal/ |
D | gtest-tuple.h | 149 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/ |
D | gtest-tuple.h | 150 template <bool kIndexValid, int kIndex, class Tuple> 739 template <typename Tuple> struct tuple_size; 796 template <int k, class Tuple> 799 k < (tuple_size<Tuple>::value), k, Tuple>::type type; 802 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type 811 template <class Tuple> 812 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple)) 813 Field(Tuple& t) { return t.f0_; } // NOLINT 815 template <class Tuple> 816 static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple)) [all …]
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
D | UTypes.pass.cpp | 47 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 …]
|
D | PR22806_constrain_tuple_like_ctor.pass.cpp | 31 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/tensorflow/tensorflow/compiler/xla/tests/ |
D | tuple_test.cc | 87 Tuple(&builder, {ConstantR0<float>(&builder, constant_scalar), in XLA_TEST_F() 102 Tuple(&builder, in XLA_TEST_F() 113 Tuple(&builder, {}); in XLA_TEST_F() 127 Tuple(&builder, {ConstantR1<float>(&builder, constant_vector), in XLA_TEST_F() 138 Tuple(&builder, in XLA_TEST_F() 166 Tuple(&builder, {ConstantR1<float>(&builder, constant_vector), in XLA_TEST_F() 195 Tuple(&builder, {ConstantR1<float>(&builder, constant_vector), in XLA_TEST_F() 197 Tuple(&builder, in XLA_TEST_F() 218 auto v1_v2 = Tuple(&b, {v1_gt, v2_gt}); // {false, true} in XLA_TEST_F() 219 auto v2_v1 = Tuple(&b, {v2_gt, v1_gt}); // {true, false} in XLA_TEST_F() [all …]
|
/external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
D | p1.cpp | 3 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/eigen/unsupported/test/ |
D | cxx11_tensor_argmax.cpp | 17 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/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | ProfileSummary.cpp | 145 MDTuple *Tuple = dyn_cast_or_null<MDTuple>(MD); in getFromMD() local 146 if (!Tuple || Tuple->getNumOperands() != 8) in getFromMD() 149 auto &FormatMD = Tuple->getOperand(0); in getFromMD() 162 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(1)), "TotalCount", in getFromMD() 165 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(2)), "MaxCount", MaxCount)) in getFromMD() 167 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(3)), "MaxInternalCount", in getFromMD() 170 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(4)), "MaxFunctionCount", in getFromMD() 173 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(5)), "NumCounts", NumCounts)) in getFromMD() 175 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(6)), "NumFunctions", in getFromMD() 180 if (!getSummaryFromMD(dyn_cast<MDTuple>(Tuple->getOperand(7)), Summary)) in getFromMD()
|
/external/tensorflow/tensorflow/core/framework/ |
D | queue_interface.h | 33 typedef std::vector<Tensor> Tuple; typedef 35 typedef std::function<void(const Tuple&)> CallbackWithTuple; 37 virtual Status ValidateTuple(const Tuple& tuple) = 0; 38 virtual Status ValidateManyTuple(const Tuple& tuple) = 0; 43 virtual void TryEnqueue(const Tuple& tuple, OpKernelContext* ctx, 48 virtual void TryEnqueueMany(const Tuple& tuple, OpKernelContext* ctx,
|
/external/libaom/libaom/third_party/googletest/src/googletest/include/gtest/ |
D | gtest-printers.h | 874 typedef TupleT Tuple; typedef 875 static const size_t tuple_size = ::std::tr1::tuple_size<Tuple>::value; 878 struct tuple_element : ::std::tr1::tuple_element<I, Tuple> {}; 882 const typename ::std::tr1::tuple_element<I, Tuple>::type>::type get( in get() 883 const Tuple& tuple) { in get() 894 typedef ::std::tuple<Types...> Tuple; 895 static const size_t tuple_size = ::std::tuple_size<Tuple>::value; 898 struct tuple_element : ::std::tuple_element<I, Tuple> {}; 901 static const typename ::std::tuple_element<I, Tuple>::type& get( 902 const Tuple& tuple) { [all …]
|
/external/mesa3d/src/gtest/include/gtest/ |
D | gtest-printers.h | 874 typedef TupleT Tuple; typedef 875 static const size_t tuple_size = ::std::tr1::tuple_size<Tuple>::value; 878 struct tuple_element : ::std::tr1::tuple_element<I, Tuple> {}; 882 const typename ::std::tr1::tuple_element<I, Tuple>::type>::type get( in get() 883 const Tuple& tuple) { in get() 894 typedef ::std::tuple<Types...> Tuple; 895 static const size_t tuple_size = ::std::tuple_size<Tuple>::value; 898 struct tuple_element : ::std::tuple_element<I, Tuple> {}; 901 static const typename ::std::tuple_element<I, Tuple>::type& get( 902 const Tuple& tuple) { [all …]
|