/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/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/libcxx/test/support/ |
D | archetypes.hpp | 263 template <class Tp> 264 constexpr bool operator==(Tp const& L, Tp const& R) noexcept { in operator ==() 268 template <class Tp> 269 constexpr bool operator!=(Tp const& L, Tp const& R) noexcept { in operator !=() 286 template <class Tp> 287 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 !=() 307 template <class Tp> 308 constexpr bool operator==(Tp const& L, Tp const& R) noexcept { in operator ==() [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()
|
D | controlled_allocators.hpp | 119 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/ |
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/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 …]
|
D | bullet_1_2_3.pass.cpp | 176 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/utilities/any/any.class/any.modifiers/ |
D | swap.pass.cpp | 57 template <class Tp> 59 assert(Tp::count == 0); in test_swap_empty() 61 any a1((Tp(1))); in test_swap_empty() 63 assert(Tp::count == 1); in test_swap_empty() 67 assert(Tp::count == 1); in test_swap_empty() 69 assertContains<Tp>(a2, 1); in test_swap_empty() 72 assert(Tp::count == 0); in test_swap_empty() 74 any a1((Tp(1))); in test_swap_empty() 76 assert(Tp::count == 1); in test_swap_empty() 80 assert(Tp::count == 1); in test_swap_empty() [all …]
|
/external/libcxx/test/std/utilities/any/any.class/any.assign/ |
D | copy.pass.cpp | 138 template <class Tp> 156 any const rhs((Tp(1))); in test_copy_assign_throws() 157 assert(Tp::count == 1); in test_copy_assign_throws() 161 assert(Tp::count == 1); in test_copy_assign_throws() 162 assertEmpty<Tp>(lhs); in test_copy_assign_throws() 163 assertContains<Tp>(rhs, 1); in test_copy_assign_throws() 167 any const rhs((Tp(1))); in test_copy_assign_throws() 169 assert(Tp::count == 1); in test_copy_assign_throws() 174 assert(Tp::count == 1); in test_copy_assign_throws() 176 assertContains<Tp>(rhs, 1); in test_copy_assign_throws() [all …]
|
D | value.pass.cpp | 124 template <class Tp, bool Move = false> 142 Tp rhs(1); in test_assign_throws() 143 assert(Tp::count == 1); in test_assign_throws() 147 assert(Tp::count == 1); in test_assign_throws() 148 assertEmpty<Tp>(lhs); in test_assign_throws() 152 Tp rhs(1); in test_assign_throws() 154 assert(Tp::count == 1); in test_assign_throws() 159 assert(Tp::count == 1); in test_assign_throws() 164 Tp rhs(1); in test_assign_throws() 166 assert(Tp::count == 1); in test_assign_throws() [all …]
|
/external/libcxx/test/std/experimental/filesystem/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/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 …]
|
D | make_from_tuple.pass.cpp | 51 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/ |
D | catch_multi_level_pointer.pass.cpp | 44 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/ |
D | swap.pass.cpp | 29 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/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 170 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/libcxx/test/std/utilities/utility/utility.swap/ |
D | swap.pass.cpp | 54 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()
|
D | swap_array.pass.cpp | 45 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/ |
D | copy.pass.cpp | 38 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()
|
/external/libcxx/test/libcxx/experimental/filesystem/class.path/path.req/ |
D | is_pathable.pass.cpp | 37 template <class Tp> 38 struct Identity { typedef Tp type; }; 43 template <class Tp> 44 using GetSourceType = typename decltype(CheckSourceType(std::declval<Tp>()))::type; 46 template <class Tp, class Exp, 48 using CheckPass = std::is_same<ExpQual, GetSourceType<Tp>>;
|
/external/libcxx/test/std/strings/basic.string/string.cons/ |
D | size_char_alloc.pass.cpp | 53 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()
|
/external/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/ |
D | PR20855_tuple_ref_binding_diagnostics.fail.cpp | 25 template <class Tp> 27 using RawTp = typename std::remove_cv< typename std::remove_reference<Tp>::type>::type; 29 operator Tp() const { in operator Tp() 30 return static_cast<Tp>(value); in operator Tp()
|
/external/google-benchmark/src/ |
D | log.h | 19 template <class Tp> 20 friend LogType& operator<<(LogType&, Tp const&); 29 template <class Tp> 30 LogType& operator<<(LogType& log, Tp const& value) {
|
/external/libcxx/utils/google-benchmark/src/ |
D | log.h | 19 template <class Tp> 20 friend LogType& operator<<(LogType&, Tp const&); 29 template <class Tp> 30 LogType& operator<<(LogType& log, Tp const& value) {
|