Home
last modified time | relevance | path

Searched refs:Tup (Results 1 – 25 of 45) sorted by relevance

12

/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
Dmove.pass.cpp53 using Tup = std::tuple<Elem>; in test_sfinae() typedef
58 static_assert(std::is_default_constructible<Tup>::value, ""); in test_sfinae()
59 static_assert(std::is_move_constructible<Tup>::value, ""); in test_sfinae()
60 static_assert(!std::is_copy_constructible<Tup>::value, ""); in test_sfinae()
61 static_assert(!std::is_constructible<Tup, Tup&>::value, ""); in test_sfinae()
65 static_assert(std::is_constructible<Tup, Elem&&>::value, ""); in test_sfinae()
66 static_assert(!std::is_constructible<Tup, Elem const&>::value, ""); in test_sfinae()
67 static_assert(!std::is_constructible<Tup, Elem&>::value, ""); in test_sfinae()
71 static_assert(std::is_constructible<Tup, Tag, Alloc>::value, ""); in test_sfinae()
72 static_assert(std::is_constructible<Tup, Tag, Alloc, Tup&&>::value, ""); in test_sfinae()
[all …]
Dimplicit_deduction_guides.pass.cpp86 using Tup = std::tuple<int, decltype(nullptr)>; in test_primary_template() typedef
87 const Tup t(42, nullptr); in test_primary_template()
90 ASSERT_SAME_TYPE(decltype(t1), Tup); in test_primary_template()
93 using Tup = std::tuple<void*, unsigned, char>; in test_primary_template() typedef
94 std::tuple t1(Tup(nullptr, 42, 'a')); in test_primary_template()
95 ASSERT_SAME_TYPE(decltype(t1), Tup); in test_primary_template()
98 using Tup = std::tuple<int, decltype(nullptr)>; in test_primary_template() typedef
99 const Tup t(42, nullptr); in test_primary_template()
102 ASSERT_SAME_TYPE(decltype(t1), Tup); in test_primary_template()
105 using Tup = std::tuple<void*, unsigned, char>; in test_primary_template() typedef
[all …]
DPR27684_contains_ref_to_incomplete_type.pass.cpp36 using Tup = std::tuple<const IT&, const IT&>; in main() typedef
37 Tup t(cinc1, cinc2); in main()
42 using Tup = std::tuple<const IT&, const IT&>; in main() typedef
43 Tup t(inc1, inc2); in main()
DUTypes.pass.cpp129 using Tup = std::tuple<E, E, E>; in main() typedef
132 static_assert(test_convertible<Tup, E, E, E>(), ""); in main()
134 Tup t(E(0), E(1)); in main()
135 static_assert(!test_convertible<Tup, E, E>(), ""); in main()
140 Tup t2(E(0)); in main()
141 static_assert(!test_convertible<Tup, E>(), ""); in main()
/external/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
Dmove.pass.cpp53 using Tup = std::tuple<Elem>; in test_sfinae() typedef
58 static_assert(std::is_default_constructible<Tup>::value, ""); in test_sfinae()
59 static_assert(std::is_move_constructible<Tup>::value, ""); in test_sfinae()
60 static_assert(!std::is_copy_constructible<Tup>::value, ""); in test_sfinae()
61 static_assert(!std::is_constructible<Tup, Tup&>::value, ""); in test_sfinae()
65 static_assert(std::is_constructible<Tup, Elem&&>::value, ""); in test_sfinae()
66 static_assert(!std::is_constructible<Tup, Elem const&>::value, ""); in test_sfinae()
67 static_assert(!std::is_constructible<Tup, Elem&>::value, ""); in test_sfinae()
71 static_assert(std::is_constructible<Tup, Tag, Alloc>::value, ""); in test_sfinae()
72 static_assert(std::is_constructible<Tup, Tag, Alloc, Tup&&>::value, ""); in test_sfinae()
[all …]
Ddeduct.pass.cpp130 using Tup = std::tuple<int, decltype(nullptr)>; in test_primary_template() typedef
131 const Tup t(42, nullptr); in test_primary_template()
134 ASSERT_SAME_TYPE(decltype(t1), Tup); in test_primary_template()
137 using Tup = std::tuple<void*, unsigned, char>; in test_primary_template() typedef
138 std::tuple t1(Tup(nullptr, 42, 'a')); in test_primary_template()
139 ASSERT_SAME_TYPE(decltype(t1), Tup); in test_primary_template()
142 using Tup = std::tuple<int, decltype(nullptr)>; in test_primary_template() typedef
143 const Tup t(42, nullptr); in test_primary_template()
146 ASSERT_SAME_TYPE(decltype(t1), Tup); in test_primary_template()
149 using Tup = std::tuple<void*, unsigned, char>; in test_primary_template() typedef
[all …]
DPR27684_contains_ref_to_incomplete_type.pass.cpp37 using Tup = std::tuple<const IT&, const IT&>; in main() typedef
38 Tup t(cinc1, cinc2); in main()
43 using Tup = std::tuple<const IT&, const IT&>; in main() typedef
44 Tup t(inc1, inc2); in main()
DUTypes.pass.cpp128 using Tup = std::tuple<E, E, E>; in main() typedef
131 static_assert(test_convertible<Tup, E, E, E>(), ""); in main()
133 Tup t(E(0), E(1)); in main()
134 static_assert(!test_convertible<Tup, E, E>(), ""); in main()
139 Tup t2(E(0)); in main()
140 static_assert(!test_convertible<Tup, E>(), ""); in main()
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/
Dapply.pass.cpp49 using Tup = std::tuple<>; in test_constexpr_evaluation() typedef
51 constexpr Tup t; in test_constexpr_evaluation()
56 using Tup = std::tuple<int>; in test_constexpr_evaluation() typedef
58 constexpr Tup t(42); in test_constexpr_evaluation()
63 using Tup = std::tuple<int, long>; in test_constexpr_evaluation() typedef
65 constexpr Tup t(42, 101); in test_constexpr_evaluation()
70 using Tup = std::pair<int, long>; in test_constexpr_evaluation() typedef
72 constexpr Tup t(42, 101); in test_constexpr_evaluation()
77 using Tup = std::tuple<int, long, int>; in test_constexpr_evaluation() typedef
79 constexpr Tup t(42, 101, -1); in test_constexpr_evaluation()
[all …]
Dmake_from_tuple.pass.cpp113 using Tup = std::tuple<>; in test_perfect_forwarding() typedef
114 Tup tup; in test_perfect_forwarding()
115 Tup const& ctup = tup; in test_perfect_forwarding()
120 using Tup = std::tuple<int>; in test_perfect_forwarding() typedef
121 Tup tup(42); in test_perfect_forwarding()
122 Tup const& ctup = tup; in test_perfect_forwarding()
129 using Tup = std::tuple<int&, const char*, unsigned&&>; in test_perfect_forwarding() typedef
132 Tup tup(x, "hello world", std::move(y)); in test_perfect_forwarding()
133 Tup const& ctup = tup; in test_perfect_forwarding()
141 using Tup = std::pair<int&, const char*>; in test_perfect_forwarding() typedef
[all …]
/external/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/
Dapply.pass.cpp48 using Tup = std::tuple<>; in test_constexpr_evaluation() typedef
50 constexpr Tup t; in test_constexpr_evaluation()
55 using Tup = std::tuple<int>; in test_constexpr_evaluation() typedef
57 constexpr Tup t(42); in test_constexpr_evaluation()
62 using Tup = std::tuple<int, long>; in test_constexpr_evaluation() typedef
64 constexpr Tup t(42, 101); in test_constexpr_evaluation()
69 using Tup = std::pair<int, long>; in test_constexpr_evaluation() typedef
71 constexpr Tup t(42, 101); in test_constexpr_evaluation()
76 using Tup = std::tuple<int, long, int>; in test_constexpr_evaluation() typedef
78 constexpr Tup t(42, 101, -1); in test_constexpr_evaluation()
[all …]
Dmake_from_tuple.pass.cpp112 using Tup = std::tuple<>; in test_perfect_forwarding() typedef
113 Tup tup; in test_perfect_forwarding()
114 Tup const& ctup = tup; in test_perfect_forwarding()
119 using Tup = std::tuple<int>; in test_perfect_forwarding() typedef
120 Tup tup(42); in test_perfect_forwarding()
121 Tup const& ctup = tup; in test_perfect_forwarding()
128 using Tup = std::tuple<int&, const char*, unsigned&&>; in test_perfect_forwarding() typedef
131 Tup tup(x, "hello world", std::move(y)); in test_perfect_forwarding()
132 Tup const& ctup = tup; in test_perfect_forwarding()
140 using Tup = std::pair<int&, const char*>; in test_perfect_forwarding() typedef
[all …]
/external/llvm-project/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/
Ddisable_reduced_arity_initialization_extension.pass.cpp84 using Tup = std::tuple<E, E, E>; in main() typedef
87 static_assert(test_convertible<Tup, E, E, E>(), ""); in main()
89 Tup t(E(0), E(1)); in main()
90 static_assert(std::is_constructible<Tup, E, E>::value, ""); in main()
91 static_assert(!test_convertible<Tup, E, E>(), ""); in main()
96 Tup t2(E(0)); in main()
97 static_assert(std::is_constructible<Tup, E>::value, ""); in main()
98 static_assert(!test_convertible<Tup, E>(), ""); in main()
Denable_reduced_arity_initialization_extension.pass.cpp97 using Tup = std::tuple<E, E, E>; in main() typedef
98 static_assert(test_convertible<Tup, E, E, E>(), ""); in main()
100 Tup t = {E(0), E(1)}; in main()
101 static_assert(test_convertible<Tup, E, E>(), ""); in main()
106 Tup t2 = {E(0)}; in main()
107 static_assert(test_convertible<Tup, E>(), ""); in main()
/external/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/
Ddisable_reduced_arity_initialization_extension.pass.cpp85 using Tup = std::tuple<E, E, E>; in main() typedef
88 static_assert(test_convertible<Tup, E, E, E>(), ""); in main()
90 Tup t(E(0), E(1)); in main()
91 static_assert(std::is_constructible<Tup, E, E>::value, ""); in main()
92 static_assert(!test_convertible<Tup, E, E>(), ""); in main()
97 Tup t2(E(0)); in main()
98 static_assert(std::is_constructible<Tup, E>::value, ""); in main()
99 static_assert(!test_convertible<Tup, E>(), ""); in main()
Denable_reduced_arity_initialization_extension.pass.cpp98 using Tup = std::tuple<E, E, E>; in main() typedef
99 static_assert(test_convertible<Tup, E, E, E>(), ""); in main()
101 Tup t = {E(0), E(1)}; in main()
102 static_assert(test_convertible<Tup, E, E>(), ""); in main()
107 Tup t2 = {E(0)}; in main()
108 static_assert(test_convertible<Tup, E>(), ""); in main()
/external/libtextclassifier/abseil-cpp/absl/utility/
Dutility_test.cc105 template <typename F, typename Tup, size_t... Is>
106 auto ApplyFromTupleImpl(F f, const Tup& tup, absl::index_sequence<Is...>) in ApplyFromTupleImpl()
111 template <typename Tup>
112 using TupIdxSeq = absl::make_index_sequence<std::tuple_size<Tup>::value>;
114 template <typename F, typename Tup>
115 auto ApplyFromTuple(F f, const Tup& tup) in ApplyFromTuple()
116 -> decltype(ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{})) { in ApplyFromTuple()
117 return ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{});
136 template <typename Tup, size_t... Is>
137 std::vector<std::string> TupStringVecImpl(const Tup& tup, in TupStringVecImpl()
/external/openscreen/third_party/abseil/src/absl/utility/
Dutility_test.cc105 template <typename F, typename Tup, size_t... Is>
106 auto ApplyFromTupleImpl(F f, const Tup& tup, absl::index_sequence<Is...>) in ApplyFromTupleImpl()
111 template <typename Tup>
112 using TupIdxSeq = absl::make_index_sequence<std::tuple_size<Tup>::value>;
114 template <typename F, typename Tup>
115 auto ApplyFromTuple(F f, const Tup& tup) in ApplyFromTuple()
116 -> decltype(ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{})) { in ApplyFromTuple()
117 return ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{});
136 template <typename Tup, size_t... Is>
137 std::vector<std::string> TupStringVecImpl(const Tup& tup, in TupStringVecImpl()
/external/abseil-cpp/absl/utility/
Dutility_test.cc105 template <typename F, typename Tup, size_t... Is>
106 auto ApplyFromTupleImpl(F f, const Tup& tup, absl::index_sequence<Is...>) in ApplyFromTupleImpl()
111 template <typename Tup>
112 using TupIdxSeq = absl::make_index_sequence<std::tuple_size<Tup>::value>;
114 template <typename F, typename Tup>
115 auto ApplyFromTuple(F f, const Tup& tup) in ApplyFromTuple()
116 -> decltype(ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{})) { in ApplyFromTuple()
117 return ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{});
136 template <typename Tup, size_t... Is>
137 std::vector<std::string> TupStringVecImpl(const Tup& tup, in TupStringVecImpl()
/external/angle/third_party/abseil-cpp/absl/utility/
Dutility_test.cc105 template <typename F, typename Tup, size_t... Is>
106 auto ApplyFromTupleImpl(F f, const Tup& tup, absl::index_sequence<Is...>) in ApplyFromTupleImpl()
111 template <typename Tup>
112 using TupIdxSeq = absl::make_index_sequence<std::tuple_size<Tup>::value>;
114 template <typename F, typename Tup>
115 auto ApplyFromTuple(F f, const Tup& tup) in ApplyFromTuple()
116 -> decltype(ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{})) { in ApplyFromTuple()
117 return ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{});
136 template <typename Tup, size_t... Is>
137 std::vector<std::string> TupStringVecImpl(const Tup& tup, in TupStringVecImpl()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/utility/
Dutility_test.cc105 template <typename F, typename Tup, size_t... Is>
106 auto ApplyFromTupleImpl(F f, const Tup& tup, absl::index_sequence<Is...>) in ApplyFromTupleImpl()
111 template <typename Tup>
112 using TupIdxSeq = absl::make_index_sequence<std::tuple_size<Tup>::value>;
114 template <typename F, typename Tup>
115 auto ApplyFromTuple(F f, const Tup& tup) in ApplyFromTuple()
116 -> decltype(ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{})) { in ApplyFromTuple()
117 return ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{});
136 template <typename Tup, size_t... Is>
137 std::vector<std::string> TupStringVecImpl(const Tup& tup, in TupStringVecImpl()
/external/webrtc/third_party/abseil-cpp/absl/utility/
Dutility_test.cc105 template <typename F, typename Tup, size_t... Is>
106 auto ApplyFromTupleImpl(F f, const Tup& tup, absl::index_sequence<Is...>) in ApplyFromTupleImpl()
111 template <typename Tup>
112 using TupIdxSeq = absl::make_index_sequence<std::tuple_size<Tup>::value>;
114 template <typename F, typename Tup>
115 auto ApplyFromTuple(F f, const Tup& tup) in ApplyFromTuple()
116 -> decltype(ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{})) { in ApplyFromTuple()
117 return ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{});
136 template <typename Tup, size_t... Is>
137 std::vector<std::string> TupStringVecImpl(const Tup& tup, in TupStringVecImpl()
/external/openscreen/third_party/abseil/src/absl/strings/internal/
Dstr_join_internal.h264 template <typename Tup, typename Formatter>
265 void operator()(std::string* out, const Tup& tup, absl::string_view sep,
274 template <typename Tup, typename Formatter>
275 void operator()(std::string*, const Tup&, absl::string_view, Formatter&&) {}
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/
Dstr_join_internal.h264 template <typename Tup, typename Formatter>
265 void operator()(std::string* out, const Tup& tup, absl::string_view sep,
274 template <typename Tup, typename Formatter>
275 void operator()(std::string*, const Tup&, absl::string_view, Formatter&&) {}
/external/libtextclassifier/abseil-cpp/absl/strings/internal/
Dstr_join_internal.h264 template <typename Tup, typename Formatter>
265 void operator()(std::string* out, const Tup& tup, absl::string_view sep,
274 template <typename Tup, typename Formatter>
275 void operator()(std::string*, const Tup&, absl::string_view, Formatter&&) {}

12