Home
last modified time | relevance | path

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

123456789

/external/cronet/buildtools/third_party/libc++/trunk/test/support/
Dpropagate_value_category.hpp49 template <class Tp>
51 typename std::remove_cv<typename std::remove_reference<Tp>::type>::type;
53 template <class Tp>
55 return std::is_lvalue_reference<Tp>::value in getReferenceQuals()
57 : (std::is_rvalue_reference<Tp>::value ? VC_RVal : VC_None); in getReferenceQuals()
63 template <class Tp>
65 using Vp = typename std::remove_reference<Tp>::type; in getCVQuals()
79 template <class Tp>
81 return getReferenceQuals<Tp>() | getCVQuals<Tp>(); in getValueCategory()
98 template <class Tp, class Vp = UnCVRef<Tp>>
[all …]
Darchetypes.h277 template <class Tp>
278 constexpr bool operator==(Tp const& L, Tp const& R) noexcept {
282 template <class Tp>
283 constexpr bool operator!=(Tp const& L, Tp const& R) noexcept {
300 template <class Tp>
301 constexpr bool operator==(Tp const& L, Tp const& R) noexcept {
305 template <class Tp>
306 constexpr bool operator!=(Tp const& L, Tp const& R) noexcept {
321 template <class Tp>
322 constexpr bool operator==(Tp const& L, Tp const& R) noexcept {
[all …]
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()
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/containers/associative/
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()
23 static_assert((std::is_same<Traits::__container_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()
30 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait()
31 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait()
35 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/cronet/buildtools/third_party/libc++/trunk/test/libcxx/containers/unord/
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()
23 static_assert((std::is_same<Traits::__container_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()
30 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait()
31 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait()
35 typedef std::pair<const int, int> Tp; in testKeyValueTrait() typedef
[all …]
/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/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()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/utility/pairs/pairs.pair/
Dctor.default.sfinae_LWG2367.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()
68 static_assert(std::is_constructible<P, int, Tp>::value, ""); in test_not_is_default_constructible()
71 typedef std::pair<Tp, int> P; in test_not_is_default_constructible()
73 static_assert(std::is_constructible<P, Tp, int>::value, ""); 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>
[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/cronet/buildtools/third_party/libc++/trunk/test/libcxx/utilities/function.objects/func.require/
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>
89 std::reference_wrapper<const Tp> makeConst(std::reference_wrapper<Tp>& ref) { in makeConst()
90 return std::reference_wrapper<const Tp>(ref.get()); in makeConst()
93 template <class Tp>
94 Tp volatile& makeVolatile(Tp& ref) { return ref; } in makeVolatile()
96 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/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/any/any.class/any.modifiers/
Dswap.pass.cpp49 template <class Tp>
51 assert(Tp::count == 0); in test_swap_empty()
53 std::any a1 = Tp(1); in test_swap_empty()
55 assert(Tp::count == 1); in test_swap_empty()
59 assert(Tp::count == 1); in test_swap_empty()
61 assertContains<Tp>(a2, 1); in test_swap_empty()
64 assert(Tp::count == 0); in test_swap_empty()
66 std::any a1 = Tp(1); in test_swap_empty()
68 assert(Tp::count == 1); in test_swap_empty()
72 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 …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/any/any.class/any.assign/
Dcopy.pass.cpp129 template <class Tp>
147 const std::any rhs = Tp(1); in test_copy_assign_throws()
148 assert(Tp::count == 1); in test_copy_assign_throws()
152 assert(Tp::count == 1); in test_copy_assign_throws()
153 assertEmpty<Tp>(lhs); in test_copy_assign_throws()
154 assertContains<Tp>(rhs, 1); in test_copy_assign_throws()
158 const std::any rhs = Tp(1); in test_copy_assign_throws()
160 assert(Tp::count == 1); in test_copy_assign_throws()
165 assert(Tp::count == 1); in test_copy_assign_throws()
167 assertContains<Tp>(rhs, 1); in test_copy_assign_throws()
[all …]
Dvalue.pass.cpp115 template <class Tp, bool Move = false>
119 [](std::any& lhs, Tp& rhs) { in test_assign_throws()
133 Tp rhs(1); in test_assign_throws()
134 assert(Tp::count == 1); in test_assign_throws()
138 assert(Tp::count == 1); in test_assign_throws()
139 assertEmpty<Tp>(lhs); in test_assign_throws()
143 Tp rhs(1); in test_assign_throws()
145 assert(Tp::count == 1); in test_assign_throws()
150 assert(Tp::count == 1); in test_assign_throws()
155 Tp rhs(1); in test_assign_throws()
[all …]
/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 …]
/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/cronet/buildtools/third_party/libc++/trunk/test/std/input.output/filesystems/class.path/path.nonmember/
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)) {};
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/utilities/meta/stress_tests/
Dstress_test_variant_overloads_impl.sh.cpp57 template <class Tp, std::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>;
/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 …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/tuple/tuple.tuple/tuple.apply/
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 …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/tuple/tuple.tuple/tuple.assign/
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 =()

123456789