Lines Matching refs:tuple
46 std::tuple t1(42); in test_primary_template()
47 ASSERT_SAME_TYPE(decltype(t1), std::tuple<int>); in test_primary_template()
48 std::tuple t2(x, 0.0, nullptr); in test_primary_template()
49 ASSERT_SAME_TYPE(decltype(t2), std::tuple<int, double, decltype(nullptr)>); in test_primary_template()
53 std::tuple t1(p1); in test_primary_template()
54 ASSERT_SAME_TYPE(decltype(t1), std::tuple<int, char>); in test_primary_template()
56 …std::pair<int, std::tuple<char, long, void*>> p2(1, std::tuple<char, long, void*>('c', 3l, nullptr… in test_primary_template()
57 std::tuple t2(p2); in test_primary_template()
58 ASSERT_SAME_TYPE(decltype(t2), std::tuple<int, std::tuple<char, long, void*>>); in test_primary_template()
62 std::tuple t3(p3); in test_primary_template()
63 ASSERT_SAME_TYPE(decltype(t3), std::tuple<std::reference_wrapper<int>, char>); in test_primary_template()
66 std::tuple t4(p4); in test_primary_template()
67 ASSERT_SAME_TYPE(decltype(t4), std::tuple<int&, char>); in test_primary_template()
69 std::tuple t5(std::pair<int, char>(1, 'c')); in test_primary_template()
70 ASSERT_SAME_TYPE(decltype(t5), std::tuple<int, char>); in test_primary_template()
76 std::tuple t1(T{}); in test_primary_template()
77 ASSERT_SAME_TYPE(decltype(t1), std::tuple<T>); in test_primary_template()
80 std::tuple t2(T{}, 101l, v); in test_primary_template()
81 ASSERT_SAME_TYPE(decltype(t2), std::tuple<T, long, T>); in test_primary_template()
85 std::tuple t1(AT, A, 42); in test_primary_template()
86 ASSERT_SAME_TYPE(decltype(t1), std::tuple<int>); in test_primary_template()
88 std::tuple t2(AT, A, 42, 0.0, x); in test_primary_template()
89 ASSERT_SAME_TYPE(decltype(t2), std::tuple<int, double, int>); in test_primary_template()
95 std::tuple t1(AT, A, T{}); in test_primary_template()
96 ASSERT_SAME_TYPE(decltype(t1), std::tuple<T>); in test_primary_template()
99 std::tuple t2(AT, A, T{}, 101l, v); in test_primary_template()
100 ASSERT_SAME_TYPE(decltype(t2), std::tuple<T, long, T>); in test_primary_template()
104 std::tuple t1(AT, A, p1); in test_primary_template()
105 ASSERT_SAME_TYPE(decltype(t1), std::tuple<int, char>); in test_primary_template()
107 …std::pair<int, std::tuple<char, long, void*>> p2(1, std::tuple<char, long, void*>('c', 3l, nullptr… in test_primary_template()
108 std::tuple t2(AT, A, p2); in test_primary_template()
109 ASSERT_SAME_TYPE(decltype(t2), std::tuple<int, std::tuple<char, long, void*>>); in test_primary_template()
113 std::tuple t3(AT, A, p3); in test_primary_template()
114 ASSERT_SAME_TYPE(decltype(t3), std::tuple<std::reference_wrapper<int>, char>); in test_primary_template()
117 std::tuple t4(AT, A, p4); in test_primary_template()
118 ASSERT_SAME_TYPE(decltype(t4), std::tuple<int&, char>); in test_primary_template()
120 std::tuple t5(AT, A, std::pair<int, char>(1, 'c')); in test_primary_template()
121 ASSERT_SAME_TYPE(decltype(t5), std::tuple<int, char>); in test_primary_template()
124 using Tup = std::tuple<int, decltype(nullptr)>; in test_primary_template()
127 std::tuple t1(t); in test_primary_template()
131 using Tup = std::tuple<void*, unsigned, char>; in test_primary_template()
132 std::tuple t1(Tup(nullptr, 42, 'a')); in test_primary_template()
136 using Tup = std::tuple<int, decltype(nullptr)>; in test_primary_template()
139 std::tuple t1(AT, A, t); in test_primary_template()
143 using Tup = std::tuple<void*, unsigned, char>; in test_primary_template()
144 std::tuple t1(AT, A, Tup(nullptr, 42, 'a')); in test_primary_template()
164 std::tuple t1{}; in test_empty_specialization()
165 ASSERT_SAME_TYPE(decltype(t1), std::tuple<>); in test_empty_specialization()
168 std::tuple t1{AT, A}; in test_empty_specialization()
169 ASSERT_SAME_TYPE(decltype(t1), std::tuple<>); in test_empty_specialization()
172 const std::tuple<> t{}; in test_empty_specialization()
173 std::tuple t1(t); in test_empty_specialization()
174 ASSERT_SAME_TYPE(decltype(t1), std::tuple<>); in test_empty_specialization()
177 std::tuple t1(std::tuple<>{}); in test_empty_specialization()
178 ASSERT_SAME_TYPE(decltype(t1), std::tuple<>); in test_empty_specialization()
181 const std::tuple<> t{}; in test_empty_specialization()
182 std::tuple t1(AT, A, t); in test_empty_specialization()
183 ASSERT_SAME_TYPE(decltype(t1), std::tuple<>); in test_empty_specialization()
186 std::tuple t1(AT, A, std::tuple<>{}); in test_empty_specialization()
187 ASSERT_SAME_TYPE(decltype(t1), std::tuple<>); in test_empty_specialization()