/external/llvm-project/clang/test/SemaTemplate/ |
D | instantiate-incomplete-typo-suggested-error-limit.cpp | 18 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 {};
|
/external/libcxx/test/libcxx/containers/associative/ |
D | tree_key_value_traits.pass.cpp | 20 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/llvm-project/libcxx/test/libcxx/containers/unord/ |
D | key_value_traits.pass.cpp | 19 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/unord/ |
D | key_value_traits.pass.cpp | 20 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/llvm-project/libcxx/test/libcxx/containers/associative/ |
D | tree_key_value_traits.pass.cpp | 19 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/support/ |
D | archetypes.hpp | 268 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 …]
|
D | verbose_assert.h | 14 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 …]
|
D | test_convertible.hpp | 27 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/llvm-project/libcxx/test/std/utilities/utility/pairs/pairs.pair/ |
D | default-sfinae.pass.cpp | 40 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/ |
D | default-sfinae.pass.cpp | 41 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/llvm-project/libcxx/test/support/ |
D | archetypes.h | 276 template <class Tp> 277 constexpr bool operator==(Tp const& L, Tp const& R) noexcept { 281 template <class Tp> 282 constexpr bool operator!=(Tp const& L, Tp const& R) noexcept { 299 template <class Tp> 300 constexpr bool operator==(Tp const& L, Tp const& R) noexcept { 304 template <class Tp> 305 constexpr bool operator!=(Tp const& L, Tp const& R) noexcept { 320 template <class Tp> 321 constexpr bool operator==(Tp const& L, Tp const& R) noexcept { [all …]
|
D | test_convertible.h | 26 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/libcxx/test/std/utilities/any/any.class/any.modifiers/ |
D | swap.pass.cpp | 58 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/llvm-project/libcxx/test/std/utilities/any/any.class/any.modifiers/ |
D | swap.pass.cpp | 56 template <class Tp> 58 assert(Tp::count == 0); in test_swap_empty() 60 any a1((Tp(1))); in test_swap_empty() 62 assert(Tp::count == 1); in test_swap_empty() 66 assert(Tp::count == 1); in test_swap_empty() 68 assertContains<Tp>(a2, 1); in test_swap_empty() 71 assert(Tp::count == 0); in test_swap_empty() 73 any a1((Tp(1))); in test_swap_empty() 75 assert(Tp::count == 1); in test_swap_empty() 79 assert(Tp::count == 1); in test_swap_empty() [all …]
|
/external/libcxx/test/libcxx/utilities/function.objects/func.require/ |
D | invoke_helpers.h | 83 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/llvm-project/libcxx/test/libcxx/utilities/function.objects/func.require/ |
D | invoke_helpers.h | 82 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/input.output/filesystems/class.path/path.nonmember/ |
D | path.io.pass.cpp | 65 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/ |
D | copy.pass.cpp | 139 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/llvm-project/libcxx/test/std/utilities/any/any.class/any.assign/ |
D | copy.pass.cpp | 136 template <class Tp> 154 any const rhs((Tp(1))); in test_copy_assign_throws() 155 assert(Tp::count == 1); in test_copy_assign_throws() 159 assert(Tp::count == 1); in test_copy_assign_throws() 160 assertEmpty<Tp>(lhs); in test_copy_assign_throws() 161 assertContains<Tp>(rhs, 1); in test_copy_assign_throws() 165 any const rhs((Tp(1))); in test_copy_assign_throws() 167 assert(Tp::count == 1); in test_copy_assign_throws() 172 assert(Tp::count == 1); in test_copy_assign_throws() 174 assertContains<Tp>(rhs, 1); in test_copy_assign_throws() [all …]
|
D | value.pass.cpp | 122 template <class Tp, bool Move = false> 126 [](any& lhs, Tp& rhs) { in test_assign_throws() 140 Tp rhs(1); in test_assign_throws() 141 assert(Tp::count == 1); in test_assign_throws() 145 assert(Tp::count == 1); in test_assign_throws() 146 assertEmpty<Tp>(lhs); in test_assign_throws() 150 Tp rhs(1); in test_assign_throws() 152 assert(Tp::count == 1); in test_assign_throws() 157 assert(Tp::count == 1); in test_assign_throws() 162 Tp rhs(1); in test_assign_throws() [all …]
|
/external/llvm-project/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/ |
D | path.io.pass.cpp | 65 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/llvm-project/libcxx/test/libcxx/utilities/meta/stress_tests/ |
D | stress_test_variant_overloads_impl.sh.cpp | 57 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>;
|
/external/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/ |
D | apply_large_arity.pass.cpp | 38 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/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/ |
D | apply_large_arity.pass.cpp | 37 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/llvm-project/clang/test/SemaCXX/ |
D | static-assert.cpp | 74 template <class Tp, Tp v> 76 static const Tp value = v; 77 typedef Tp value_type; 83 template <class Tp, Tp v> 84 const Tp integral_constant<Tp, v>::value; 89 template <class Tp> 91 template <class Tp> 92 struct is_const<Tp const> : public true_type {};
|