Searched refs:has_type (Results 1 – 4 of 4) sorted by relevance
| /llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/ |
| H A D | common_reference.compile.pass.cpp | 22 constexpr bool has_type = requires { 60 static_assert(!has_type<std::common_reference<> >); 158 static_assert(!has_type<std::common_reference<volatile UserTuple<short>&, const UserTuple<int, shor… 173 static_assert(!has_type<std::common_reference<int, short, int, char*> >); 188 static_assert(!has_type<std::common_reference<std::tuple<int, const X2>, std::tuple<float, const Z2… 189 static_assert(!has_type<std::common_reference<std::tuple<int, X2>, std::tuple<float, Z2>>>); 190 static_assert(!has_type<std::common_reference<std::tuple<int, X2>, int, X2>>); 211 static_assert(!has_type<std::common_reference_t<std::pair<const int&, volatile int&>, 216 static_assert(!has_type<std::common_reference<std::pair<int, const X2>, std::pair<float, const Z2>>… 217 static_assert(!has_type<std::common_reference<std::pair<int, X2>, std::pair<float, Z2>>>); [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | cxx1z-class-template-argument-deduction.cpp | 19 template<typename T> constexpr bool has_type(...) { return false; } in has_type() function 20 template<typename T> constexpr bool has_type(T&) { return true; } in has_type() function 34 static_assert(has_type<vector<int>>(v1)); 38 static_assert(has_type<vector<char>>(v2)); 41 static_assert(has_type<vector<int>>(v3)); 44 static_assert(has_type<vector<iter>>(v4)); 47 static_assert(has_type<vector<iter>>(v5)); 56 static_assert(has_type<tuple<int, char, const char*, int>>(ta)); 59 static_assert(has_type<tuple<int, char, const char*, int>>(tb)); 98 static_assert(has_type<vector<int>>(a<vector>)); [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.utility/range.dangling/ |
| H A D | borrowed_subrange.compile.pass.cpp | 36 constexpr bool has_type = requires { 40 static_assert(!has_type<int>); 43 static_assert(!has_type<S>);
|
| /llvm-project-15.0.7/clang/test/CXX/expr/expr.prim/expr.prim.req/ |
| H A D | type-requirement.cpp | 179 struct has_type { using type = int; }; struct 191 …using c2 = C1_check<has_type>; // expected-error{{constraints not satisfied for class template 'C1…
|