/external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
D | example-tuple.cpp | 54 template<typename... Values> class tuple; 57 template<> class tuple<> { }; class 60 class tuple<Head, Tail...> : private tuple<Tail...> { class 61 typedef tuple<Tail...> inherited; 64 tuple() { } in tuple() function in tuple 68 tuple(typename add_const_reference<Head>::type v, in tuple() function in tuple 73 template<typename... VValues> tuple(const tuple<VValues...>& other) in tuple() function in tuple 76 template<typename... VValues> tuple& 77 operator=(const tuple<VValues...>& other) { in operator =() 93 tuple<> t0a; in test_tuple() [all …]
|
D | example-bind.cpp | 54 template<typename... Values> class tuple; 57 template<> class tuple<> { }; class 60 class tuple<Head, Tail...> : private tuple<Tail...> { class 61 typedef tuple<Tail...> inherited; 64 tuple() { } in tuple() function in tuple 68 tuple(typename add_const_reference<Head>::type v, in tuple() function in tuple 73 template<typename... VValues> tuple(const tuple<VValues...>& other) in tuple() function in tuple 76 template<typename... VValues> tuple& 77 operator=(const tuple<VValues...>& other) { in operator =() 104 tuple<typename make_tuple_result<Values>::type...> [all …]
|
D | multi-level-substitution.cpp | 4 template<typename...> struct tuple { }; struct 38 struct Inner<tuple<pair<Types, YTypes>...> > { 43 int check0[X<short, int, long>::Inner<tuple<pair<short, unsigned short>, 48 int check1[X<short, int>::Inner<tuple<pair<short, unsigned short>, 61 struct Inner<tuple<pair<Types, YTypes>...>, 67 int check2[X1<short, int, long>::Inner<tuple<pair<short, unsigned short>, 74 int check3[X1<short, int>::Inner<tuple<pair<short, unsigned short>, 119 struct Inner<tuple<pair<Types1, Types2>...>, 125 int check6[X3<short, int, long>::Inner<tuple<pair<short, unsigned short>, 133 int check7[X3<short, int>::Inner<tuple<pair<short, unsigned short>, [all …]
|
D | partial-ordering.cpp | 5 template<typename ...Types> struct tuple; 13 struct X1<tuple<Head, Tail...> > { 18 struct X1<tuple<Head, Tail&...> > { 23 struct X1<tuple<Head&, Tail&...> > { 27 int check0[X1<tuple<>>::value == 0? 1 : -1]; 28 int check1[X1<tuple<int>>::value == 2? 1 : -1]; 29 int check2[X1<tuple<int, int>>::value == 1? 1 : -1]; 30 int check3[X1<tuple<int, int&>>::value == 2? 1 : -1]; 31 int check4[X1<tuple<int&, int&>>::value == 3? 1 : -1];
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/ |
D | tuple_cat.pass.cpp | 29 std::tuple<> t = std::tuple_cat(); in main() 33 std::tuple<> t1; in main() 34 std::tuple<> t2 = std::tuple_cat(t1); in main() 38 std::tuple<> t = std::tuple_cat(std::tuple<>()); in main() 42 std::tuple<> t = std::tuple_cat(std::array<int, 0>()); in main() 46 std::tuple<int> t1(1); in main() 47 std::tuple<int> t = std::tuple_cat(t1); in main() 53 constexpr std::tuple<> t = std::tuple_cat(); in main() 57 constexpr std::tuple<> t1; in main() 58 constexpr std::tuple<> t2 = std::tuple_cat(t1); in main() [all …]
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.rel/ |
D | eq.pass.cpp | 27 typedef std::tuple<> T1; in main() 28 typedef std::tuple<> T2; in main() 35 typedef std::tuple<int> T1; in main() 36 typedef std::tuple<double> T2; in main() 43 typedef std::tuple<int> T1; in main() 44 typedef std::tuple<double> T2; in main() 51 typedef std::tuple<int, double> T1; in main() 52 typedef std::tuple<double, char> T2; in main() 59 typedef std::tuple<int, double> T1; in main() 60 typedef std::tuple<double, char> T2; in main() [all …]
|
D | lt.pass.cpp | 39 typedef std::tuple<> T1; in main() 40 typedef std::tuple<> T2; in main() 49 typedef std::tuple<char> T1; in main() 50 typedef std::tuple<double> T2; in main() 59 typedef std::tuple<char> T1; in main() 60 typedef std::tuple<double> T2; in main() 69 typedef std::tuple<char> T1; in main() 70 typedef std::tuple<double> T2; in main() 79 typedef std::tuple<char, int> T1; in main() 80 typedef std::tuple<double, char> T2; in main() [all …]
|
/external/protobuf/gtest/test/ |
D | gtest-tuple_test.cc | 40 using ::std::tr1::tuple; 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() 55 EXPECT_EQ(0, +tuple_size<tuple<> >::value); in TEST() 56 EXPECT_EQ(1, +tuple_size<tuple<void*> >::value); in TEST() 57 EXPECT_EQ(1, +tuple_size<tuple<char> >::value); in TEST() 58 EXPECT_EQ(1, +(tuple_size<tuple<tuple<int, double> > >::value)); in TEST() 59 EXPECT_EQ(2, +(tuple_size<tuple<int&, const char> >::value)); in TEST() 60 EXPECT_EQ(3, +(tuple_size<tuple<char*, void, const bool&> >::value)); in TEST() [all …]
|
/external/google-breakpad/src/testing/gtest/test/ |
D | gtest-tuple_test.cc | 40 using ::std::tr1::tuple; 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() 55 EXPECT_EQ(0, +tuple_size<tuple<> >::value); in TEST() 56 EXPECT_EQ(1, +tuple_size<tuple<void*> >::value); in TEST() 57 EXPECT_EQ(1, +tuple_size<tuple<char> >::value); in TEST() 58 EXPECT_EQ(1, +(tuple_size<tuple<tuple<int, double> > >::value)); in TEST() 59 EXPECT_EQ(2, +(tuple_size<tuple<int&, const char> >::value)); in TEST() 60 EXPECT_EQ(3, +(tuple_size<tuple<char*, void, const bool&> >::value)); in TEST() [all …]
|
/external/gtest/test/ |
D | gtest-tuple_test.cc | 40 using ::std::tr1::tuple; 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() 55 EXPECT_EQ(0, +tuple_size<tuple<> >::value); in TEST() 56 EXPECT_EQ(1, +tuple_size<tuple<void*> >::value); in TEST() 57 EXPECT_EQ(1, +tuple_size<tuple<char> >::value); in TEST() 58 EXPECT_EQ(1, +(tuple_size<tuple<tuple<int, double> > >::value)); in TEST() 59 EXPECT_EQ(2, +(tuple_size<tuple<int&, const char> >::value)); in TEST() 60 EXPECT_EQ(3, +(tuple_size<tuple<char*, void, const bool&> >::value)); in TEST() [all …]
|
/external/libcxx/include/ |
D | tuple | 2 //===--------------------------- tuple ------------------------------------===// 15 tuple synopsis 21 class tuple { 23 constexpr tuple(); 24 explicit tuple(const T&...); // constexpr in C++14 26 explicit tuple(U&&...); // constexpr in C++14 27 tuple(const tuple&) = default; 28 tuple(tuple&&) = default; 30 tuple(const tuple<U...>&); // constexpr in C++14 32 tuple(tuple<U...>&&); // constexpr in C++14 [all …]
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
D | default.pass.cpp | 51 std::tuple<> t; in main() 54 std::tuple<int> t; in main() 58 std::tuple<int, char*> t; in main() 63 std::tuple<int, char*, std::string> t; in main() 69 std::tuple<int, char*, std::string, DefaultOnly> t; in main() 77 static_assert(!std::is_default_constructible<std::tuple<NoDefault>>(), ""); in main() 78 static_assert(!std::is_default_constructible<std::tuple<DefaultOnly, NoDefault>>(), ""); in main() 79 …static_assert(!std::is_default_constructible<std::tuple<NoDefault, DefaultOnly, NoDefault>>(), ""); in main() 82 static_assert(noexcept(std::tuple<NoExceptDefault>()), ""); in main() 83 static_assert(noexcept(std::tuple<NoExceptDefault, NoExceptDefault>()), ""); in main() [all …]
|
D | convert_copy.pass.cpp | 59 typedef std::tuple<double> T0; in main() 60 typedef std::tuple<int> T1; in main() 67 typedef std::tuple<double> T0; in main() 68 typedef std::tuple<A> T1; in main() 74 typedef std::tuple<int> T0; in main() 75 typedef std::tuple<C> T1; in main() 82 typedef std::tuple<double, char> T0; in main() 83 typedef std::tuple<int, int> T1; in main() 90 typedef std::tuple<double, char, D> T0; in main() 91 typedef std::tuple<int, int, B> T1; in main() [all …]
|
D | UTypes.pass.cpp | 45 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() 58 typedef std::tuple<MoveOnly, MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() 72 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() 73 typedef std::tuple<MoveOnly, Tuple, MoveOnly, MoveOnly> NestedTuple; in test_default_constructible_extension_sfinae() 86 typedef std::tuple<MoveOnly, int> Tuple; in test_default_constructible_extension_sfinae() 87 typedef std::tuple<MoveOnly, Tuple, MoveOnly, MoveOnly> NestedTuple; in test_default_constructible_extension_sfinae() 104 std::tuple<MoveOnly> t(MoveOnly(0)); in main() 108 std::tuple<MoveOnly, MoveOnly> t(MoveOnly(0), MoveOnly(1)); in main() 113 std::tuple<MoveOnly, MoveOnly, MoveOnly> t(MoveOnly(0), in main() 122 std::tuple<MoveOnly, MoveOnly, MoveOnly> t(MoveOnly(0), in main() [all …]
|
D | const_Types.pass.cpp | 59 std::tuple<int> t(2); in main() 64 constexpr std::tuple<int> t(2); in main() 68 constexpr std::tuple<int> t; in main() 73 std::tuple<int, char*> t(2, 0); in main() 79 constexpr std::tuple<int, char*> t(2, nullptr); in main() 85 std::tuple<int, char*> t(2, nullptr); in main() 90 std::tuple<int, char*, std::string> t(2, nullptr, "text"); in main() 100 std::tuple<int, NoValueCtor, int, int> t(1, NoValueCtor(), 2, 3); in main() 107 std::tuple<int, NoValueCtorEmpty, int, int> t(1, NoValueCtorEmpty(), 2, 3); in main() 114 std::tuple<int, char*, std::string> t(2); in main() [all …]
|
/external/google-breakpad/src/testing/test/ |
D | gmock-generated-internal-utils_test.cc | 42 using ::std::tr1::tuple; 52 CompileAssertTypesEqual<tuple<>, MatcherTuple<tuple<> >::type>(); in TEST() 56 CompileAssertTypesEqual<tuple<Matcher<int> >, in TEST() 57 MatcherTuple<tuple<int> >::type>(); in TEST() 61 CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char> >, in TEST() 62 MatcherTuple<tuple<int, char> >::type>(); in TEST() 66 CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char>, Matcher<bool>, in TEST() 68 MatcherTuple<tuple<int, char, bool, double, char*> in TEST() 77 CompileAssertTypesEqual<tuple<>, F::ArgumentTuple>(); in TEST() 78 CompileAssertTypesEqual<tuple<>, F::ArgumentMatcherTuple>(); in TEST() [all …]
|
/external/llvm/utils/unittest/googletest/include/gtest/internal/ |
D | gtest-tuple.h | 50 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \ 55 #define GTEST_0_TUPLE_(T) tuple<> 56 #define GTEST_1_TUPLE_(T) tuple<T##0, void, void, void, void, void, void, \ 58 #define GTEST_2_TUPLE_(T) tuple<T##0, T##1, void, void, void, void, void, \ 60 #define GTEST_3_TUPLE_(T) tuple<T##0, T##1, T##2, void, void, void, void, \ 62 #define GTEST_4_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, void, void, void, \ 64 #define GTEST_5_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, void, void, \ 66 #define GTEST_6_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, void, \ 68 #define GTEST_7_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \ 70 #define GTEST_8_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \ [all …]
|
/external/google-breakpad/src/testing/gtest/include/gtest/internal/ |
D | gtest-tuple.h | 52 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \ 57 #define GTEST_0_TUPLE_(T) tuple<> 58 #define GTEST_1_TUPLE_(T) tuple<T##0, void, void, void, void, void, void, \ 60 #define GTEST_2_TUPLE_(T) tuple<T##0, T##1, void, void, void, void, void, \ 62 #define GTEST_3_TUPLE_(T) tuple<T##0, T##1, T##2, void, void, void, void, \ 64 #define GTEST_4_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, void, void, void, \ 66 #define GTEST_5_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, void, void, \ 68 #define GTEST_6_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, void, \ 70 #define GTEST_7_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \ 72 #define GTEST_8_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \ [all …]
|
/external/gtest/include/gtest/internal/ |
D | gtest-tuple.h | 52 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \ 57 #define GTEST_0_TUPLE_(T) tuple<> 58 #define GTEST_1_TUPLE_(T) tuple<T##0, void, void, void, void, void, void, \ 60 #define GTEST_2_TUPLE_(T) tuple<T##0, T##1, void, void, void, void, void, \ 62 #define GTEST_3_TUPLE_(T) tuple<T##0, T##1, T##2, void, void, void, void, \ 64 #define GTEST_4_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, void, void, void, \ 66 #define GTEST_5_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, void, void, \ 68 #define GTEST_6_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, void, \ 70 #define GTEST_7_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \ 72 #define GTEST_8_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \ [all …]
|
/external/mesa3d/src/gtest/include/gtest/internal/ |
D | gtest-tuple.h | 50 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \ 55 #define GTEST_0_TUPLE_(T) tuple<> 56 #define GTEST_1_TUPLE_(T) tuple<T##0, void, void, void, void, void, void, \ 58 #define GTEST_2_TUPLE_(T) tuple<T##0, T##1, void, void, void, void, void, \ 60 #define GTEST_3_TUPLE_(T) tuple<T##0, T##1, T##2, void, void, void, void, \ 62 #define GTEST_4_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, void, void, void, \ 64 #define GTEST_5_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, void, void, \ 66 #define GTEST_6_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, void, \ 68 #define GTEST_7_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \ 70 #define GTEST_8_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \ [all …]
|
/external/protobuf/gtest/include/gtest/internal/ |
D | gtest-tuple.h | 50 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \ 55 #define GTEST_0_TUPLE_(T) tuple<> 56 #define GTEST_1_TUPLE_(T) tuple<T##0, void, void, void, void, void, void, \ 58 #define GTEST_2_TUPLE_(T) tuple<T##0, T##1, void, void, void, void, void, \ 60 #define GTEST_3_TUPLE_(T) tuple<T##0, T##1, T##2, void, void, void, void, \ 62 #define GTEST_4_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, void, void, void, \ 64 #define GTEST_5_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, void, void, \ 66 #define GTEST_6_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, void, \ 68 #define GTEST_7_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \ 70 #define GTEST_8_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \ [all …]
|
/external/libcxx/test/std/utilities/tuple/tuple.general/ |
D | tuple.smartptr.pass.cpp | 21 std::tuple<std::unique_ptr<char>> up; in main() 22 std::tuple<std::shared_ptr<char>> sp; in main() 23 std::tuple<std::weak_ptr <char>> wp; in main() 27 std::tuple<std::unique_ptr<char[]>> up; in main() 28 std::tuple<std::shared_ptr<char[]>> sp; in main() 29 std::tuple<std::weak_ptr <char[]>> wp; in main() 33 std::tuple<std::unique_ptr<char[5]>> up; in main() 34 std::tuple<std::shared_ptr<char[5]>> sp; in main() 35 std::tuple<std::weak_ptr <char[5]>> wp; in main()
|
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/ |
D | p9-0x.cpp | 3 template<typename ...Types> struct tuple; 23 struct tuple_same_with_int<tuple<Types...>, tuple<Types..., int>> { 27 int tuple_same_with_int_1[tuple_same_with_int<tuple<int, float, double>, 28 tuple<int, float, double, int> 44 typedef tuple<ElementTypes...> element_types; 47 typedef tuple<unsigned_c<Bounds>...> bounds_types; 51 tuple<int, float, double>>::value? 1 : -1]; 53 tuple<unsigned_c<1>, unsigned_c<2>, unsigned_c<3>>
|
D | p2-0x.cpp | 10 template<typename ...> struct tuple; 18 struct same_tuple<tuple<Types1...>, tuple<Types1...> > { 22 int same_tuple_check1[same_tuple<tuple<int, float>, tuple<int, double>>::value? -1 : 1]; 23 int same_tuple_check2[same_tuple<tuple<float, double>, tuple<float, double>>::value? 1 : -1];
|
/external/google-breakpad/src/testing/include/gmock/internal/ |
D | gmock-generated-internal-utils.h | 72 struct MatcherTuple< ::std::tr1::tuple<> > { 73 typedef ::std::tr1::tuple< > type; 77 struct MatcherTuple< ::std::tr1::tuple<A1> > { 78 typedef ::std::tr1::tuple<Matcher<A1> > type; 82 struct MatcherTuple< ::std::tr1::tuple<A1, A2> > { 83 typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2> > type; 87 struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3> > { 88 typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3> > type; 92 struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4> > { 93 typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, [all …]
|