Home
last modified time | relevance | path

Searched refs:cmp_less (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_less/
H A Dcmp_less.pass.cpp39 assert(std::cmp_less(T(0), T(1))); in test_cmp_less1()
40 assert(std::cmp_less(T(1), T(2))); in test_cmp_less1()
44 assert(!std::cmp_less(T(1), T(0))); in test_cmp_less1()
45 assert(!std::cmp_less(T(10), T(5))); in test_cmp_less1()
51 assert(!std::cmp_less(tup.max, 1)); in test_cmp_less1()
52 assert(!std::cmp_less(1, tup.min)); in test_cmp_less1()
53 assert(!std::cmp_less(T(-1), T(-1))); in test_cmp_less1()
56 assert(std::cmp_less(-2, tup.max)); in test_cmp_less1()
57 assert(!std::cmp_less(tup.max, -2)); in test_cmp_less1()
62 assert(std::cmp_less(T(0), U(1))); in test_cmp_less2()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/utility/utility.intcmp/
H A Dintcmp.fail.cpp59 std::cmp_less(T(), T()); // expected-error 10-11 {{no matching function for call to 'cmp_less'}} in test()
60 std::cmp_less(T(), int()); // expected-error 10-11 {{no matching function for call to 'cmp_less'}} in test()
61 std::cmp_less(int(), T()); // expected-error 10-11 {{no matching function for call to 'cmp_less'}} in test()
83 std::cmp_less(T(), T()); // expected-error 1 {{no matching function for call to 'cmp_less'}} in test_char8t()
84 std::cmp_less(T(), int()); // expected-error 1 {{no matching function for call to 'cmp_less'}} in test_char8t()
85 std::cmp_less(int(), T()); // expected-error 1 {{no matching function for call to 'cmp_less'}} in test_char8t()
108 std::cmp_less(T(), T()); // expected-error 2 {{no matching function for call to 'cmp_less'}} in test_uchars()
109 std::cmp_less(T(), int()); // expected-error 2 {{no matching function for call to 'cmp_less'}} in test_uchars()
110 std::cmp_less(int(), T()); // expected-error 2 {{no matching function for call to 'cmp_less'}} in test_uchars()
/llvm-project-15.0.7/libcxx/include/__utility/
H A Dcmp.h63 bool cmp_less(_Tp __t, _Up __u) noexcept in cmp_less() function
77 return _VSTD::cmp_less(__u, __t); in cmp_greater()
91 return !_VSTD::cmp_less(__t, __u); in cmp_greater_equal()
/llvm-project-15.0.7/libcxx/include/
H A Dutility63 template<class T, class U> constexpr bool cmp_less(T t, U u) noexcept; // C++20