Home
last modified time | relevance | path

Searched refs:Tp (Results 1 – 25 of 91) sorted by relevance

1234

/llvm-project-15.0.7/libcxx/test/support/
H A Dpropagate_value_category.hpp49 template <class Tp>
53 template <class Tp>
63 template <class Tp>
79 template <class Tp>
81 return getReferenceQuals<Tp>() | getCVQuals<Tp>(); in getValueCategory()
98 template <class Tp, class Vp = UnCVRef<Tp>>
112 template <class Tp>
117 static Apply<UnCVRef<Tp>> cast(Tp &&t) { in cast()
124 static Apply<UnCVRef<Tp>> cast(Tp &&t) { in cast()
133 static Apply<UnCVRef<Tp>> cast(Tp &&t) { in cast()
[all …]
H A Darchetypes.h278 constexpr bool operator==(Tp const& L, Tp const& R) noexcept {
283 constexpr bool operator!=(Tp const& L, Tp const& R) noexcept {
301 constexpr bool operator==(Tp const& L, Tp const& R) noexcept {
306 constexpr bool operator!=(Tp const& L, Tp const& R) noexcept {
322 constexpr bool operator==(Tp const& L, Tp const& R) noexcept {
327 constexpr bool operator!=(Tp const& L, Tp const& R) noexcept {
345 constexpr bool operator==(Tp const& L, Tp const& R) noexcept {
350 constexpr bool operator!=(Tp const& L, Tp const& R) noexcept {
367 constexpr bool operator==(Tp const& L, Tp const& R) noexcept {
372 constexpr bool operator!=(Tp const& L, Tp const& R) noexcept {
[all …]
H A Dtest_convertible.h26 template <class Tp> void eat_type(Tp);
28 template <class Tp, class ...Args>
30 -> decltype(eat_type<Tp>({std::declval<Args>()...}), true)
33 template <class Tp, class ...Args>
37 template <class Tp, class ...Args>
39 { return detail::test_convertible_imp<Tp, Args...>(0); } in test_convertible()
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dinstantiate-incomplete-typo-suggested-error-limit.cpp18 template <bool, class Tp = void> struct enable_if {};
19 template <class Tp> struct enable_if<true, Tp> { typedef Tp type; };
21 template <class Tp, Tp v> struct integral_constant {
22 static constexpr const Tp value = v;
23 typedef Tp value_type;
30 template <class Tp, Tp v> constexpr const Tp integral_constant<Tp, v>::value;
35 template <class Tp, class Up> struct is_same : public false_type {};
36 template <class Tp> struct is_same<Tp, Tp> : public true_type {};
/llvm-project-15.0.7/libcxx/test/libcxx/containers/associative/
H A Dtree_key_value_traits.pass.cpp19 typedef int Tp; in testKeyValueTrait() typedef
20 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait()
22 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait()
27 typedef std::pair<int, int> Tp; in testKeyValueTrait() typedef
28 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait()
29 static_assert((std::is_same<Traits::key_type, Tp>::value), ""); in testKeyValueTrait()
35 typedef std::pair<const int, int> Tp; in testKeyValueTrait() typedef
36 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait()
37 static_assert((std::is_same<Traits::key_type, Tp>::value), ""); in testKeyValueTrait()
43 typedef std::__value_type<int, int> Tp; in testKeyValueTrait() typedef
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/containers/unord/
H A Dkey_value_traits.pass.cpp19 typedef int Tp; in testKeyValueTrait() typedef
20 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait()
22 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait()
27 typedef std::pair<int, int> Tp; in testKeyValueTrait() typedef
28 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait()
29 static_assert((std::is_same<Traits::key_type, Tp>::value), ""); in testKeyValueTrait()
35 typedef std::pair<const int, int> Tp; in testKeyValueTrait() typedef
36 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait()
37 static_assert((std::is_same<Traits::key_type, Tp>::value), ""); in testKeyValueTrait()
43 typedef std::__hash_value_type<int, int> Tp; in testKeyValueTrait() typedef
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/utility/pairs/pairs.pair/
H A Ddefault-sfinae.pass.cpp40 template <class Tp, bool>
41 struct DependantType: public Tp {};
62 template <class Tp>
66 typedef std::pair<int, Tp> P; in test_not_is_default_constructible()
71 typedef std::pair<Tp, int> P; in test_not_is_default_constructible()
76 typedef std::pair<Tp, Tp> P; in test_not_is_default_constructible()
78 static_assert(std::is_constructible<P, Tp, Tp>::value, ""); in test_not_is_default_constructible()
82 template <class Tp>
86 typedef std::pair<int, Tp> P; in test_is_default_constructible()
90 typedef std::pair<Tp, int> P; in test_is_default_constructible()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/function.objects/func.require/
H A Dinvoke_helpers.h82 template <class Tp>
83 Tp const& makeConst(Tp& ref) { return ref; } in makeConst()
85 template <class Tp>
86 Tp const* makeConst(Tp* ptr) { return ptr; } in makeConst()
88 template <class Tp>
93 template <class Tp>
94 Tp volatile& makeVolatile(Tp& ref) { return ref; } in makeVolatile()
96 template <class Tp>
97 Tp volatile* makeVolatile(Tp* ptr) { return ptr; } in makeVolatile()
105 Tp const volatile& makeCV(Tp& ref) { return ref; } in makeCV()
[all …]
H A Dbullet_1_2_3.pass.cpp175 template <class QT, class Tp>
180 template <class QT, class Tp>
184 template <class Tp>
185 void runTestDispatch(Q_None, Tp& v) { in runTestDispatch()
189 template <class Tp>
190 void runTestDispatch(Q_Const, Tp& v) { in runTestDispatch()
195 template <class Tp>
202 template <class Tp>
203 void runTestDispatch(Q_CV, Tp& v) { in runTestDispatch()
269 template <class Tp>
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/any/any.class/any.modifiers/
H A Dswap.pass.cpp50 template <class Tp>
52 assert(Tp::count == 0); in test_swap_empty()
54 std::any a1 = Tp(1); in test_swap_empty()
56 assert(Tp::count == 1); in test_swap_empty()
60 assert(Tp::count == 1); in test_swap_empty()
65 assert(Tp::count == 0); in test_swap_empty()
67 std::any a1 = Tp(1); in test_swap_empty()
69 assert(Tp::count == 1); in test_swap_empty()
73 assert(Tp::count == 1); in test_swap_empty()
78 assert(Tp::count == 0); in test_swap_empty()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/any/any.class/any.assign/
H A Dcopy.pass.cpp130 template <class Tp>
148 const std::any rhs = Tp(1); in test_copy_assign_throws()
149 assert(Tp::count == 1); in test_copy_assign_throws()
153 assert(Tp::count == 1); in test_copy_assign_throws()
154 assertEmpty<Tp>(lhs); in test_copy_assign_throws()
155 assertContains<Tp>(rhs, 1); in test_copy_assign_throws()
159 const std::any rhs = Tp(1); in test_copy_assign_throws()
161 assert(Tp::count == 1); in test_copy_assign_throws()
166 assert(Tp::count == 1); in test_copy_assign_throws()
174 assert(Tp::count == 1); in test_copy_assign_throws()
[all …]
H A Dvalue.pass.cpp120 [](std::any& lhs, Tp& rhs) { in test_assign_throws()
134 Tp rhs(1); in test_assign_throws()
135 assert(Tp::count == 1); in test_assign_throws()
139 assert(Tp::count == 1); in test_assign_throws()
140 assertEmpty<Tp>(lhs); in test_assign_throws()
144 Tp rhs(1); in test_assign_throws()
146 assert(Tp::count == 1); in test_assign_throws()
151 assert(Tp::count == 1); in test_assign_throws()
156 Tp rhs(1); in test_assign_throws()
158 assert(Tp::count == 1); in test_assign_throws()
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/
H A Dpath.io.pass.cpp63 template <class Stream, class Tp, class = decltype(std::declval<Stream&>() << std::declval<Tp&>())>
66 template <class Stream, class Tp>
69 template <class Stream, class Tp, class = decltype(std::declval<Stream&>() >> std::declval<Tp&>())>
72 template <class Stream, class Tp>
78 template <class Stream, class Tp>
79 struct is_ostreamable : decltype(impl::is_ostreamable_imp<Stream, Tp>(0)) {};
80 template <class Stream, class Tp>
81 struct is_istreamable : decltype(impl::is_istreamable_imp<Stream, Tp>(0)) {};
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/meta/stress_tests/
H A Dstress_test_variant_overloads_impl.sh.cpp57 template <class Tp, size_t Idx>
59 auto operator()(Tp, Tp) const -> ID<Tp>;
88 template <class Tp, class... Types>
89 struct Overload<Tp, Types...> : Overload<Types...> {
91 auto operator()(Tp, Tp) const -> ID<Tp>;
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/
H A Dapply_large_arity.pass.cpp38 template <class Tp, std::size_t ...Idx>
39 struct make_function<Tp, std::integer_sequence<std::size_t, Idx...>>
41 using type = bool (*)(always_t<Tp, Idx>...);
44 template <class Tp, std::size_t Size>
45 using make_function_t = typename make_function<Tp, std::make_index_sequence<Size>>::type;
48 template <class Tp, class Idx>
52 template <class Tp, std::size_t ...Idx>
53 struct make_tuple_imp<Tp, std::integer_sequence<std::size_t, Idx...>>
55 using type = std::tuple<always_t<Tp, Idx>...>;
58 template <class Tp, std::size_t Size>
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/
H A Dderived_from_tuple_like.pass.cpp29 template <class Tp,
31 typename std::decay<Tp>::type, TracksIntQuals>::value>::type>
32 TracksIntQuals(Tp &&x) in TracksIntQuals()
33 : value(x), value_category(getValueCategory<Tp &&>()), assigned(false) { in TracksIntQuals()
34 static_assert(std::is_same<UnCVRef<Tp>, int>::value, ""); in TracksIntQuals()
37 template <class Tp,
39 typename std::decay<Tp>::type, TracksIntQuals>::value>::type>
40 TracksIntQuals &operator=(Tp &&x) { in operator =()
41 static_assert(std::is_same<UnCVRef<Tp>, int>::value, ""); in operator =()
43 value_category = getValueCategory<Tp &&>(); in operator =()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dstatic-assert.cpp88 template <class Tp, Tp v>
90 static const Tp value = v;
91 typedef Tp value_type;
97 template <class Tp, Tp v>
98 const Tp integral_constant<Tp, v>::value;
103 template <class Tp>
105 template <class Tp>
106 struct is_const<Tp const> : public true_type {};
/llvm-project-15.0.7/libcxxabi/test/
H A Dcatch_multi_level_pointer.pass.cpp46 template <class Tp>
47 struct CreatePointer<Tp*> {
48 Tp* operator()() const { in operator ()()
49 return (Tp*)42; in operator ()()
73 template <class Tp, bool First = false>
75 typedef Tp* Type;
76 typedef Tp const* CType;
77 typedef Tp volatile* VType;
78 typedef Tp const volatile* CVType;
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/misc/
H A Dconst-correctness-transform-values.cpp125 template <class Tp, Tp v>
127 static constexpr const Tp value = v;
128 using value_type = Tp;
144 template <bool, typename Tp = void>
147 template <typename Tp>
148 struct enable_if<true, Tp> { using type = Tp; };
/llvm-project-15.0.7/libcxx/test/std/containers/sequences/array/array.special/
H A Dswap.pass.cpp25 template <class Tp>
26 decltype(swap(std::declval<Tp>(), std::declval<Tp>()))
29 template <class Tp>
32 template <class Tp>
33 struct can_swap : std::is_same<decltype(can_swap_imp<Tp>(0)), void> { };
/llvm-project-15.0.7/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/
H A Dcopy.pass.cpp38 template <class Tp>
39 constexpr bool assign_empty(optional<Tp>&& lhs) { in assign_empty()
40 const optional<Tp> rhs; in assign_empty()
45 template <class Tp>
46 constexpr bool assign_value(optional<Tp>&& lhs) { in assign_value()
47 const optional<Tp> rhs(101); in assign_value()
/llvm-project-15.0.7/libcxx/test/std/utilities/utility/utility.swap/
H A Dswap.pass.cpp54 template <class Tp>
55 auto can_swap_test(int) -> decltype(std::swap(std::declval<Tp>(), std::declval<Tp>()));
57 template <class Tp>
60 template <class Tp>
62 return std::is_same<decltype(can_swap_test<Tp>(0)), void>::value; in can_swap()
H A Dswap_array.pass.cpp46 template <class Tp>
47 auto can_swap_test(int) -> decltype(std::swap(std::declval<Tp>(), std::declval<Tp>()));
49 template <class Tp>
52 template <class Tp>
54 return std::is_same<decltype(can_swap_test<Tp>(0)), void>::value; in can_swap()
/llvm-project-15.0.7/libcxx/test/libcxx/input.output/filesystems/class.path/path.req/
H A Dis_pathable.pass.cpp34 template <class Tp>
35 struct Identity { typedef Tp type; };
40 template <class Tp>
41 using GetSourceType = typename decltype(CheckSourceType(std::declval<Tp>()))::type;
43 template <class Tp, class Exp,
45 using CheckPass = std::is_same<ExpQual, GetSourceType<Tp>>;
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dbuiltin-source-location.cpp230 template <class Tp, int>
232 Tp info = Tp::current();
233 Tp arg_info;
235 constexpr TestTemplate(Tp arg_info = Tp::current()) : arg_info(arg_info) {} in TestTemplate()

1234