Home
last modified time | relevance | path

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

12345678910>>...12

/external/libcxx/test/libcxx/containers/associative/
Dtree_key_value_traits.pass.cpp20 typedef int Tp; in testKeyValueTrait() typedef
21 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait()
23 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait()
24 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait()
28 typedef std::pair<int, int> Tp; in testKeyValueTrait() typedef
29 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait()
30 static_assert((std::is_same<Traits::key_type, Tp>::value), ""); in testKeyValueTrait()
31 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait()
32 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait()
36 typedef std::pair<const int, int> Tp; in testKeyValueTrait() typedef
[all …]
/external/libcxx/test/libcxx/containers/unord/
Dkey_value_traits.pass.cpp20 typedef int Tp; in testKeyValueTrait() typedef
21 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait()
23 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait()
24 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait()
28 typedef std::pair<int, int> Tp; in testKeyValueTrait() typedef
29 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait()
30 static_assert((std::is_same<Traits::key_type, Tp>::value), ""); in testKeyValueTrait()
31 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait()
32 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait()
36 typedef std::pair<const int, int> Tp; in testKeyValueTrait() typedef
[all …]
/external/libcxx/test/support/
Darchetypes.hpp268 template <class Tp>
269 constexpr bool operator==(Tp const& L, Tp const& R) noexcept { in operator ==()
273 template <class Tp>
274 constexpr bool operator!=(Tp const& L, Tp const& R) noexcept { in operator !=()
291 template <class Tp>
292 constexpr bool operator==(Tp const& L, Tp const& R) noexcept { in operator ==()
296 template <class Tp>
297 constexpr bool operator!=(Tp const& L, Tp const& R) noexcept { in operator !=()
312 template <class Tp>
313 constexpr bool operator==(Tp const& L, Tp const& R) noexcept { in operator ==()
[all …]
Dverbose_assert.h14 template <class Stream, class Tp,
15 class = decltype(std::declval<Stream&>() << std::declval<Tp const&>())>
17 template <class Stream, class Tp> std::false_type IsStreamableImp(long);
19 template <class Stream, class Tp>
20 struct IsStreamable : decltype(IsStreamableImp<Stream, Tp>(0)) {};
22 template <class Tp, int ST = (IsStreamable<decltype(std::cerr), Tp>::value ? 1
23 : (IsStreamable<decltype(std::wcerr), Tp>::value ? 2 : -1))>
26 static void Print(Tp const&) { std::clog << "Value Not Streamable!\n"; } in Print()
29 template <class Tp>
30 struct SelectStream<Tp, 1> {
[all …]
Dtest_convertible.hpp27 template <class Tp> void eat_type(Tp);
29 template <class Tp, class ...Args>
31 -> decltype(eat_type<Tp>({std::declval<Args>()...}), true) in test_convertible_imp()
34 template <class Tp, class ...Args>
38 template <class Tp, class ...Args>
40 { return detail::test_convertible_imp<Tp, Args...>(0); } in test_convertible()
Dcontrolled_allocators.hpp119 template <class ...Args, class Alloc, class Tp>
120 void countConstruct(Alloc const&, Tp *p) { in countConstruct()
124 last_construct_type = &makeTypeID<Tp>(); in countConstruct()
128 template <class Alloc, class Tp>
129 void countDestroy(Alloc const&, Tp *p) { in countDestroy()
132 last_destroy_type = &makeTypeID<Tp>(); in countDestroy()
185 template <class ...Args, class Alloc, class Tp>
186 bool checkConstruct(Alloc const&, Tp *p) const { in checkConstruct()
188 auto expectTp = &makeTypeID<Tp>(); in checkConstruct()
196 template <class Alloc, class Tp>
[all …]
/external/libcxx/test/std/utilities/utility/pairs/pairs.pair/
Ddefault-sfinae.pass.cpp41 template <class Tp, bool>
42 struct DependantType: public Tp {};
63 template <class Tp>
67 typedef std::pair<int, Tp> P; in test_not_is_default_constructible()
69 static_assert(std::is_constructible<P, int, Tp>::value, ""); in test_not_is_default_constructible()
72 typedef std::pair<Tp, int> P; in test_not_is_default_constructible()
74 static_assert(std::is_constructible<P, Tp, int>::value, ""); in test_not_is_default_constructible()
77 typedef std::pair<Tp, Tp> P; in test_not_is_default_constructible()
79 static_assert(std::is_constructible<P, Tp, Tp>::value, ""); in test_not_is_default_constructible()
83 template <class Tp>
[all …]
/external/libcxx/test/std/utilities/any/any.class/any.modifiers/
Dswap.pass.cpp58 template <class Tp>
60 assert(Tp::count == 0); in test_swap_empty()
62 any a1((Tp(1))); in test_swap_empty()
64 assert(Tp::count == 1); in test_swap_empty()
68 assert(Tp::count == 1); in test_swap_empty()
70 assertContains<Tp>(a2, 1); in test_swap_empty()
73 assert(Tp::count == 0); in test_swap_empty()
75 any a1((Tp(1))); in test_swap_empty()
77 assert(Tp::count == 1); in test_swap_empty()
81 assert(Tp::count == 1); in test_swap_empty()
[all …]
/external/libcxx/test/libcxx/utilities/function.objects/func.require/
Dinvoke_helpers.h83 template <class Tp>
84 Tp const& makeConst(Tp& ref) { return ref; } in makeConst()
86 template <class Tp>
87 Tp const* makeConst(Tp* ptr) { return ptr; } in makeConst()
89 template <class Tp>
90 std::reference_wrapper<const Tp> makeConst(std::reference_wrapper<Tp>& ref) { in makeConst()
91 return std::reference_wrapper<const Tp>(ref.get()); in makeConst()
94 template <class Tp>
95 Tp volatile& makeVolatile(Tp& ref) { return ref; } in makeVolatile()
97 template <class Tp>
[all …]
Dbullet_1_2_3.pass.cpp176 template <class QT, class Tp>
177 void runTestDispatchIf(Bool<true>, QT q, Tp& v) { in runTestDispatchIf()
181 template <class QT, class Tp>
182 void runTestDispatchIf(Bool<false>, QT, Tp&) { in runTestDispatchIf()
185 template <class Tp>
186 void runTestDispatch(Q_None, Tp& v) { in runTestDispatch()
190 template <class Tp>
191 void runTestDispatch(Q_Const, Tp& v) { in runTestDispatch()
196 template <class Tp>
197 void runTestDispatch(Q_Volatile, Tp& v) { in runTestDispatch()
[all …]
/external/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/
Dpath.io.pass.cpp65 template <class Stream, class Tp, class = decltype(std::declval<Stream&>() << std::declval<Tp&>())>
68 template <class Stream, class Tp>
71 template <class Stream, class Tp, class = decltype(std::declval<Stream&>() >> std::declval<Tp&>())>
74 template <class Stream, class Tp>
80 template <class Stream, class Tp>
81 struct is_ostreamable : decltype(impl::is_ostreamable_imp<Stream, Tp>(0)) {};
82 template <class Stream, class Tp>
83 struct is_istreamable : decltype(impl::is_istreamable_imp<Stream, Tp>(0)) {};
/external/libcxx/test/std/utilities/any/any.class/any.assign/
Dcopy.pass.cpp139 template <class Tp>
157 any const rhs((Tp(1))); in test_copy_assign_throws()
158 assert(Tp::count == 1); in test_copy_assign_throws()
162 assert(Tp::count == 1); in test_copy_assign_throws()
163 assertEmpty<Tp>(lhs); in test_copy_assign_throws()
164 assertContains<Tp>(rhs, 1); in test_copy_assign_throws()
168 any const rhs((Tp(1))); in test_copy_assign_throws()
170 assert(Tp::count == 1); in test_copy_assign_throws()
175 assert(Tp::count == 1); in test_copy_assign_throws()
177 assertContains<Tp>(rhs, 1); in test_copy_assign_throws()
[all …]
Dvalue.pass.cpp125 template <class Tp, bool Move = false>
129 [](any& lhs, Tp& rhs) { in test_assign_throws()
143 Tp rhs(1); in test_assign_throws()
144 assert(Tp::count == 1); in test_assign_throws()
148 assert(Tp::count == 1); in test_assign_throws()
149 assertEmpty<Tp>(lhs); in test_assign_throws()
153 Tp rhs(1); in test_assign_throws()
155 assert(Tp::count == 1); in test_assign_throws()
160 assert(Tp::count == 1); in test_assign_throws()
165 Tp rhs(1); in test_assign_throws()
[all …]
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/
Dapply_large_arity.pass.cpp37 template <class Tp, std::size_t ...Idx>
38 struct make_function<Tp, std::integer_sequence<std::size_t, Idx...>>
40 using type = bool (*)(always_t<Tp, Idx>...);
43 template <class Tp, std::size_t Size>
44 using make_function_t = typename make_function<Tp, std::make_index_sequence<Size>>::type;
47 template <class Tp, class Idx>
51 template <class Tp, std::size_t ...Idx>
52 struct make_tuple_imp<Tp, std::integer_sequence<std::size_t, Idx...>>
54 using type = std::tuple<always_t<Tp, Idx>...>;
57 template <class Tp, std::size_t Size>
[all …]
Dmake_from_tuple.pass.cpp51 template <class Tp, size_t N>
52 struct ConstructibleFromTuple<std::array<Tp, N>> {
58 std::array<Tp, N> args;
65 using Tp = ConstexprConstructibleFromTuple<RawTuple>; in do_constexpr_test() typedef
66 return std::make_from_tuple<Tp>(std::forward<Tuple>(tup)).args == tup; in do_constexpr_test()
78 using Tp = ConstructibleFromTuple<RawTuple>; in do_forwarding_test() typedef
79 const Tp value = std::make_from_tuple<Tp>(std::forward<Tuple>(tup)); in do_forwarding_test()
/external/libcxxabi/test/
Dcatch_multi_level_pointer.pass.cpp44 template <class Tp>
45 struct CreatePointer<Tp*> {
46 Tp* operator()() const { in operator ()()
47 return (Tp*)42; in operator ()()
71 template <class Tp, bool First = false>
73 typedef Tp* Type;
74 typedef Tp const* CType;
75 typedef Tp volatile* VType;
76 typedef Tp const volatile* CVType;
/external/libcxx/test/std/containers/sequences/array/array.special/
Dswap.pass.cpp29 template <class Tp>
30 decltype(swap(std::declval<Tp>(), std::declval<Tp>()))
33 template <class Tp>
36 template <class Tp>
37 struct can_swap : std::is_same<decltype(can_swap_imp<Tp>(0)), void> {};
/external/libcxx/test/std/utilities/utility/utility.swap/
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()
Dswap_array.pass.cpp45 template <class Tp>
46 auto can_swap_test(int) -> decltype(std::swap(std::declval<Tp>(), std::declval<Tp>()));
48 template <class Tp>
51 template <class Tp>
53 return std::is_same<decltype(can_swap_test<Tp>(0)), void>::value; in can_swap()
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/
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()
Dmove.pass.cpp56 template <class Tp>
57 constexpr bool assign_empty(optional<Tp>&& lhs) { in assign_empty()
58 optional<Tp> rhs; in assign_empty()
63 template <class Tp>
64 constexpr bool assign_value(optional<Tp>&& lhs) { in assign_value()
65 optional<Tp> rhs(101); in assign_value()
67 return lhs.has_value() && rhs.has_value() && *lhs == Tp{101}; in assign_value()
/external/libcxx/test/libcxx/input.output/filesystems/class.path/path.req/
Dis_pathable.pass.cpp35 template <class Tp>
36 struct Identity { typedef Tp type; };
41 template <class Tp>
42 using GetSourceType = typename decltype(CheckSourceType(std::declval<Tp>()))::type;
44 template <class Tp, class Exp,
46 using CheckPass = std::is_same<ExpQual, GetSourceType<Tp>>;
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp170 Constant *getRandomConstant(Type *Tp) { in getRandomConstant()
171 if (Tp->isIntegerTy()) { in getRandomConstant()
173 return ConstantInt::getAllOnesValue(Tp); in getRandomConstant()
174 return ConstantInt::getNullValue(Tp); in getRandomConstant()
175 } else if (Tp->isFloatingPointTy()) { in getRandomConstant()
177 return ConstantFP::getAllOnesValue(Tp); in getRandomConstant()
178 return ConstantFP::getNullValue(Tp); in getRandomConstant()
180 return UndefValue::get(Tp); in getRandomConstant()
184 Value *getRandomValue(Type *Tp) { in getRandomValue()
188 if (V->getType() == Tp) in getRandomValue()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-stress/
Dllvm-stress.cpp210 Constant *getRandomConstant(Type *Tp) { in getRandomConstant()
211 if (Tp->isIntegerTy()) { in getRandomConstant()
213 return ConstantInt::getAllOnesValue(Tp); in getRandomConstant()
214 return ConstantInt::getNullValue(Tp); in getRandomConstant()
215 } else if (Tp->isFloatingPointTy()) { in getRandomConstant()
217 return ConstantFP::getAllOnesValue(Tp); in getRandomConstant()
218 return ConstantFP::getNullValue(Tp); in getRandomConstant()
220 return UndefValue::get(Tp); in getRandomConstant()
224 Value *getRandomValue(Type *Tp) { in getRandomValue()
228 if (V->getType() == Tp) in getRandomValue()
[all …]
/external/libcxx/test/std/strings/basic.string/string.cons/
Dsize_char_alloc.pass.cpp53 template <class Tp>
55 test(Tp n, Tp c) in test()
69 template <class Tp, class A>
71 test(Tp n, Tp c, const A& a) in test()

12345678910>>...12