| /llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.logical/ |
| H A D | disjunction.compile.pass.cpp | 39 static_assert( std::disjunction<std::true_type, std::true_type >::value); 44 static_assert( std::disjunction_v<std::true_type, std::true_type >); 49 static_assert( std::disjunction<std::true_type, std::true_type, std::true_type >::value); 50 static_assert( std::disjunction<std::true_type, std::false_type, std::true_type >::value); 51 static_assert( std::disjunction<std::false_type, std::true_type, std::true_type >::value); 53 static_assert( std::disjunction<std::true_type, std::true_type, std::false_type>::value); 58 static_assert( std::disjunction_v<std::true_type, std::true_type, std::true_type >); 59 static_assert( std::disjunction_v<std::true_type, std::false_type, std::true_type >); 60 static_assert( std::disjunction_v<std::false_type, std::true_type, std::true_type >); 62 static_assert( std::disjunction_v<std::true_type, std::true_type, std::false_type>); [all …]
|
| H A D | conjunction.compile.pass.cpp | 36 static_assert( std::conjunction_v<std::true_type >); 39 static_assert( std::conjunction<std::true_type, std::true_type >::value); 44 static_assert( std::conjunction_v<std::true_type, std::true_type >); 49 static_assert( std::conjunction<std::true_type, std::true_type, std::true_type >::value); 50 static_assert(!std::conjunction<std::true_type, std::false_type, std::true_type >::value); 51 static_assert(!std::conjunction<std::false_type, std::true_type, std::true_type >::value); 53 static_assert(!std::conjunction<std::true_type, std::true_type, std::false_type>::value); 58 static_assert( std::conjunction_v<std::true_type, std::true_type, std::true_type >); 59 static_assert(!std::conjunction_v<std::true_type, std::false_type, std::true_type >); 60 static_assert(!std::conjunction_v<std::false_type, std::true_type, std::true_type >); [all …]
|
| H A D | negation.pass.cpp | 26 static_assert (!std::negation<std::true_type >::value, "" ); in main() 29 static_assert (!std::negation_v<std::true_type >, "" ); in main() 38 static_assert ( std::negation<std::negation<std::true_type >>::value, "" ); in main()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | STLForwardCompatTest.cpp | 16 EXPECT_FALSE((llvm::negation<std::true_type>::value)); in TEST() 24 EXPECT_TRUE((llvm::conjunction<std::true_type>::value)); in TEST() 26 EXPECT_FALSE((llvm::conjunction<std::false_type, std::true_type>::value)); in TEST() 27 EXPECT_FALSE((llvm::conjunction<std::true_type, std::false_type>::value)); in TEST() 28 EXPECT_TRUE((llvm::conjunction<std::true_type, std::true_type>::value)); in TEST() 29 EXPECT_TRUE((llvm::conjunction<std::true_type, std::true_type, in TEST() 30 std::true_type>::value)); in TEST() 36 EXPECT_TRUE((llvm::disjunction<std::true_type>::value)); in TEST() 40 EXPECT_TRUE((llvm::disjunction<std::true_type, std::true_type>::value)); in TEST() 41 EXPECT_TRUE((llvm::disjunction<std::true_type, std::true_type, in TEST() [all …]
|
| /llvm-project-15.0.7/libcxx/include/__random/ |
| H A D | is_valid.h | 29 template<> struct __libcpp_random_is_valid_inttype<int8_t> : true_type {}; // extension 30 template<> struct __libcpp_random_is_valid_inttype<short> : true_type {}; 31 template<> struct __libcpp_random_is_valid_inttype<int> : true_type {}; 32 template<> struct __libcpp_random_is_valid_inttype<long> : true_type {}; 33 template<> struct __libcpp_random_is_valid_inttype<long long> : true_type {}; 34 template<> struct __libcpp_random_is_valid_inttype<uint8_t> : true_type {}; // extension 35 template<> struct __libcpp_random_is_valid_inttype<unsigned short> : true_type {}; 36 template<> struct __libcpp_random_is_valid_inttype<unsigned int> : true_type {}; 37 template<> struct __libcpp_random_is_valid_inttype<unsigned long> : true_type {}; 38 template<> struct __libcpp_random_is_valid_inttype<unsigned long long> : true_type {}; [all …]
|
| /llvm-project-15.0.7/libcxx/test/libcxx/utilities/meta/stress_tests/ |
| H A D | stress_test_metafunctions.sh.cpp | 31 using std::true_type; 35 #define TRUE_T() std::true_type, 50 void Foo1(TEST_AND < REPEAT_1000(TRUE_T) true_type > t1) { sink(&t1); } in Foo1() 51 void Foo2(TEST_AND < REPEAT_1000(TRUE_T) REPEAT_1000(TRUE_T) true_type > t2) { sink(&t2); } in Foo2() 52 void Foo3(TEST_AND < REPEAT_1000(TRUE_T) true_type, false_type > t3) { sink(&t3); } in Foo3() argument 53 void Foo4(TEST_AND < REPEAT_1000(TRUE_T) REPEAT_1000(TRUE_T) true_type, false_type > t4) { sink(&t4… in Foo4() argument 54 void Foo5(TEST_AND < false_type, REPEAT_1000(TRUE_T) true_type > t5) { sink(&t5); } in Foo5() 55 void Foo6(TEST_AND < false_type, REPEAT_1000(TRUE_T) REPEAT_1000(TRUE_T) true_type > t6) { sink(&t6… in Foo6()
|
| /llvm-project-15.0.7/libcxx/include/__type_traits/ |
| H A D | is_unsigned_integer.h | 22 template <> struct __libcpp_is_unsigned_integer<unsigned char> : public true_type {}; 23 template <> struct __libcpp_is_unsigned_integer<unsigned short> : public true_type {}; 24 template <> struct __libcpp_is_unsigned_integer<unsigned int> : public true_type {}; 25 template <> struct __libcpp_is_unsigned_integer<unsigned long> : public true_type {}; 26 template <> struct __libcpp_is_unsigned_integer<unsigned long long> : public true_type {}; 28 template <> struct __libcpp_is_unsigned_integer<__uint128_t> : public true_type {};
|
| H A D | is_signed_integer.h | 22 template <> struct __libcpp_is_signed_integer<signed char> : public true_type {}; 23 template <> struct __libcpp_is_signed_integer<signed short> : public true_type {}; 24 template <> struct __libcpp_is_signed_integer<signed int> : public true_type {}; 25 template <> struct __libcpp_is_signed_integer<signed long> : public true_type {}; 26 template <> struct __libcpp_is_signed_integer<signed long long> : public true_type {}; 28 template <> struct __libcpp_is_signed_integer<__int128_t> : public true_type {};
|
| H A D | is_reference.h | 46 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS is_lvalue_reference<_Tp&> : public true_type {}; 49 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS is_rvalue_reference<_Tp&&> : public true_type {}; 52 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS is_reference<_Tp&> : public true_type {}; 53 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS is_reference<_Tp&&> : public true_type {};
|
| H A D | is_floating_point.h | 23 template <> struct __libcpp_is_floating_point<float> : public true_type {}; 24 template <> struct __libcpp_is_floating_point<double> : public true_type {}; 25 template <> struct __libcpp_is_floating_point<long double> : public true_type {};
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.help/ |
| H A D | integral_constant.pass.cpp | 32 static_assert ( std::true_type{}(), "" ); in main() 39 static_assert(std::true_type::value == true, ""); in main() 40 static_assert((std::is_same<std::true_type::value_type, bool>::value), ""); in main() 41 static_assert((std::is_same<std::true_type::type, std::true_type>::value), ""); in main() 47 std::true_type t1; in main() 48 std::true_type t2 = t1; in main()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/memory/allocator.traits/allocator.traits.types/ |
| H A D | is_always_equal.pass.cpp | 28 typedef std::true_type is_always_equal; 46 …static_assert((std::is_same<std::allocator_traits<A<char> >::is_always_equal, std::true_type>::val… in main() 47 …static_assert((std::is_same<std::allocator_traits<B<char> >::is_always_equal, std::true_type>::val… in main() 50 …(std::is_same<std::allocator_traits<A<const char> >::is_always_equal, std::true_type>::value), ""); in main() 51 …(std::is_same<std::allocator_traits<B<const char> >::is_always_equal, std::true_type>::value), ""); in main()
|
| H A D | propagate_on_container_swap.pass.cpp | 28 typedef std::true_type propagate_on_container_swap; 42 typedef std::true_type propagate_on_container_swap; 47 …is_same<std::allocator_traits<A<char> >::propagate_on_container_swap, std::true_type>::value), ""); in main()
|
| H A D | propagate_on_container_copy_assignment.pass.cpp | 28 typedef std::true_type propagate_on_container_copy_assignment; 43 typedef std::true_type propagate_on_container_copy_assignment; 48 …::allocator_traits<A<char> >::propagate_on_container_copy_assignment, std::true_type>::value), ""); in main()
|
| H A D | propagate_on_container_move_assignment.pass.cpp | 28 typedef std::true_type propagate_on_container_move_assignment; 43 typedef std::true_type propagate_on_container_move_assignment; 49 …::allocator_traits<A<char> >::propagate_on_container_move_assignment, std::true_type>::value), ""); in main()
|
| /llvm-project-15.0.7/pstl/include/pstl/internal/ |
| H A D | algorithm_fwd.h | 38 /*__is_vector=*/std::true_type) noexcept; 60 /*vector=*/std::true_type) noexcept; 209 /* is_vector = */ std::true_type) noexcept; 349 /*vector=*/std::true_type) noexcept; 428 /*vector=*/std::true_type) noexcept; 438 /*vector=*/std::true_type) noexcept; 530 /*vector=*/std::true_type) noexcept; 556 /*is_vector=*/std::true_type) noexcept; 735 /*is_move_constructible=*/std::true_type); 822 /* __is_vector = */ std::true_type) noexcept; [all …]
|
| H A D | execution_defs.h | 58 struct is_execution_policy<__pstl::execution::sequenced_policy> : std::true_type 62 struct is_execution_policy<__pstl::execution::parallel_policy> : std::true_type 66 struct is_execution_policy<__pstl::execution::parallel_unsequenced_policy> : std::true_type 70 struct is_execution_policy<__pstl::execution::unsequenced_policy> : std::true_type
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.traits/ |
| H A D | uses_allocator.pass.cpp | 29 static_assert((std::is_base_of<std::true_type, in main() 34 static_assert((std::is_base_of<std::true_type, in main() 39 static_assert((std::is_base_of<std::true_type, in main() 44 static_assert((std::is_base_of<std::true_type, in main()
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | compare_types.h | 464 friend std::true_type operator==(returns_true_type, returns_true_type); 465 friend std::true_type operator!=(returns_true_type, returns_true_type); 466 friend std::true_type operator<(returns_true_type, returns_true_type); 467 friend std::true_type operator>(returns_true_type, returns_true_type); 468 friend std::true_type operator<=(returns_true_type, returns_true_type); 469 friend std::true_type operator>=(returns_true_type, returns_true_type); 473 friend std::true_type operator==(returns_true_type, totally_ordered_with_others); 477 friend std::true_type operator<(returns_true_type, totally_ordered_with_others); 478 friend std::true_type operator<(totally_ordered_with_others, returns_true_type); 479 friend std::true_type operator>(returns_true_type, totally_ordered_with_others); [all …]
|
| H A D | charconv_test_helpers.h | 26 using std::true_type; 30 is_non_narrowing(From a) -> decltype(To{a}, true_type()) 44 _fits_in(T, true_type /* non-narrowing*/, ...) in _fits_in() argument 51 _fits_in(T v, false_type, true_type /* T signed*/, true_type /* X signed */) in _fits_in() argument 58 _fits_in(T v, false_type, true_type /* T signed */, false_type /* X unsigned*/) in _fits_in() argument 135 static long long fromchars_impl(char const* p, char const* ep, int base, true_type) in fromchars_impl() 153 static __int128_t fromchars128_impl(char const* p, char const* ep, int base, true_type) in fromchars128_impl()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cert/ |
| H A D | dcl58-cpp.cpp | 71 struct is_error_code_enum<MyError> : std::true_type {}; 85 struct is_error_code_enum<bool> : std::true_type {}; 102 struct is_error_code_enum<std::io_errc> : std::true_type {}; 131 struct is_error_code_enum<std::Outer::Inner> : std::true_type {}; 139 struct is_error_code_enum<std::detail::X> : std::true_type {};
|
| /llvm-project-15.0.7/libcxx/test/libcxx/utilities/any/ |
| H A D | allocator.pass.cpp | 47 using propagate_on_container_move_assignment = std::true_type; 48 using is_always_equal = std::true_type; 77 using propagate_on_container_move_assignment = std::true_type; 78 using is_always_equal = std::true_type;
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | type_traits.h | 102 struct is_trivially_copy_constructible<T &> : std::true_type {}; 113 struct is_trivially_move_constructible<T &> : std::true_type {}; 115 struct is_trivially_move_constructible<T &&> : std::true_type {}; 121 …static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{}); 129 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{}); 185 class is_trivially_copyable<T*> : public std::true_type {
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | ilist_node_options.h | 69 template <> struct extract_sentinel_tracking<> : std::true_type, is_implicit {}; 76 : std::true_type {}; 90 template <class Tag> struct is_valid_option<ilist_tag<Tag>> : std::true_type {}; 96 template <> struct check_options<> : std::true_type {};
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
| H A D | convert_types.h | 28 struct std::uses_allocator<MutableCopy, test_allocator<int>> : std::true_type {}; 44 struct std::uses_allocator<ConstCopy, test_allocator<int>> : std::true_type {}; 60 struct std::uses_allocator<MutableMove, test_allocator<int>> : std::true_type {}; 76 struct std::uses_allocator<ConstMove, test_allocator<int>> : std::true_type {}; 106 struct std::uses_allocator<ConvertibleFrom<T>, test_allocator<int>> : std::true_type {}; 136 struct std::uses_allocator<ExplicitConstructibleFrom<T>, test_allocator<int>> : std::true_type {}; 170 struct std::uses_allocator<TracedCopyMove, test_allocator<int>> : std::true_type {};
|