Home
last modified time | relevance | path

Searched refs:partial_ordering (Results 1 – 25 of 33) sorted by relevance

12

/external/llvm-project/libcxx/test/std/language.support/cmp/cmp.partialord/
Dpartialord.pass.cpp25 DoNotOptimize(&std::partial_ordering::less); in test_static_members()
26 DoNotOptimize(&std::partial_ordering::equivalent); in test_static_members()
27 DoNotOptimize(&std::partial_ordering::greater); in test_static_members()
28 DoNotOptimize(&std::partial_ordering::unordered); in test_static_members()
32 auto& Eq = std::partial_ordering::equivalent; in test_signatures()
49 ASSERT_SAME_TYPE(decltype(Eq <=> 0), std::partial_ordering); in test_signatures()
50 ASSERT_SAME_TYPE(decltype(0 <=> Eq), std::partial_ordering); in test_signatures()
55 static_assert(std::is_convertible<const std::partial_ordering, std::weak_equality>::value, ""); in test_conversion()
57 auto V = std::partial_ordering::equivalent; in test_conversion()
61 std::partial_ordering TestCases[] = { in test_conversion()
[all …]
/external/llvm-project/clang/test/CodeGenCXX/Inputs/
Dstd-compare.h25 class partial_ordering {
27 explicit constexpr partial_ordering(_EqResult __v) noexcept in partial_ordering() function
29 explicit constexpr partial_ordering(_OrdResult __v) noexcept in partial_ordering() function
31 explicit constexpr partial_ordering(_NCmpResult __v) noexcept in partial_ordering() function
40 static const partial_ordering less;
41 static const partial_ordering equivalent;
42 static const partial_ordering greater;
43 static const partial_ordering unordered;
46 friend constexpr bool operator==(partial_ordering __v, _CmpUnspecifiedParam) noexcept;
47 friend constexpr bool operator!=(partial_ordering __v, _CmpUnspecifiedParam) noexcept;
[all …]
/external/llvm-project/clang/test/SemaCXX/Inputs/
Dstd-compare.h25 class partial_ordering {
27 explicit constexpr partial_ordering(_EqResult __v) noexcept in partial_ordering() function
29 explicit constexpr partial_ordering(_OrdResult __v) noexcept in partial_ordering() function
31 explicit constexpr partial_ordering(_NCmpResult __v) noexcept in partial_ordering() function
40 static const partial_ordering less;
41 static const partial_ordering equivalent;
42 static const partial_ordering greater;
43 static const partial_ordering unordered;
46 friend constexpr bool operator==(partial_ordering __v, _CmpUnspecifiedParam) noexcept;
47 friend constexpr bool operator!=(partial_ordering __v, _CmpUnspecifiedParam) noexcept;
[all …]
/external/llvm-project/clang/test/PCH/Inputs/
Dstd-compare.h25 class partial_ordering {
27 explicit constexpr partial_ordering(_EqResult __v) noexcept in partial_ordering() function
29 explicit constexpr partial_ordering(_OrdResult __v) noexcept in partial_ordering() function
31 explicit constexpr partial_ordering(_NCmpResult __v) noexcept in partial_ordering() function
40 static const partial_ordering less;
41 static const partial_ordering equivalent;
42 static const partial_ordering greater;
43 static const partial_ordering unordered;
46 friend constexpr bool operator==(partial_ordering __v, _CmpUnspecifiedParam) noexcept;
47 friend constexpr bool operator!=(partial_ordering __v, _CmpUnspecifiedParam) noexcept;
[all …]
/external/libcxx/test/std/language.support/cmp/cmp.partialord/
Dpartialord.pass.cpp26 DoNotOptimize(&std::partial_ordering::less); in test_static_members()
27 DoNotOptimize(&std::partial_ordering::equivalent); in test_static_members()
28 DoNotOptimize(&std::partial_ordering::greater); in test_static_members()
29 DoNotOptimize(&std::partial_ordering::unordered); in test_static_members()
33 auto& Eq = std::partial_ordering::equivalent; in test_signatures()
50 ASSERT_SAME_TYPE(decltype(Eq <=> 0), std::partial_ordering); in test_signatures()
51 ASSERT_SAME_TYPE(decltype(0 <=> Eq), std::partial_ordering); in test_signatures()
56 static_assert(std::is_convertible<const std::partial_ordering, std::weak_equality>::value, ""); in test_conversion()
58 auto V = std::partial_ordering::equivalent; in test_conversion()
62 std::partial_ordering TestCases[] = { in test_conversion()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/types/
Dcompare_test.cc69 EXPECT_TRUE(Identity(partial_ordering::less < 0)); in TEST()
70 EXPECT_TRUE(Identity(0 > partial_ordering::less)); in TEST()
71 EXPECT_TRUE(Identity(partial_ordering::less <= 0)); in TEST()
72 EXPECT_TRUE(Identity(0 >= partial_ordering::less)); in TEST()
73 EXPECT_TRUE(Identity(partial_ordering::equivalent == 0)); in TEST()
74 EXPECT_TRUE(Identity(0 == partial_ordering::equivalent)); in TEST()
75 EXPECT_TRUE(Identity(partial_ordering::greater > 0)); in TEST()
76 EXPECT_TRUE(Identity(0 < partial_ordering::greater)); in TEST()
77 EXPECT_TRUE(Identity(partial_ordering::greater >= 0)); in TEST()
78 EXPECT_TRUE(Identity(0 <= partial_ordering::greater)); in TEST()
[all …]
Dcompare.h252 class partial_ordering
253 : public compare_internal::partial_ordering_base<partial_ordering> {
254 explicit constexpr partial_ordering(compare_internal::eq v) noexcept
256 explicit constexpr partial_ordering(compare_internal::ord v) noexcept
258 explicit constexpr partial_ordering(compare_internal::ncmp v) noexcept
260 friend struct compare_internal::partial_ordering_base<partial_ordering>;
268 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, less);
269 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, equivalent);
270 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, greater);
271 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, unordered);
[all …]
/external/angle/third_party/abseil-cpp/absl/types/
Dcompare_test.cc69 EXPECT_TRUE(Identity(partial_ordering::less < 0)); in TEST()
70 EXPECT_TRUE(Identity(0 > partial_ordering::less)); in TEST()
71 EXPECT_TRUE(Identity(partial_ordering::less <= 0)); in TEST()
72 EXPECT_TRUE(Identity(0 >= partial_ordering::less)); in TEST()
73 EXPECT_TRUE(Identity(partial_ordering::equivalent == 0)); in TEST()
74 EXPECT_TRUE(Identity(0 == partial_ordering::equivalent)); in TEST()
75 EXPECT_TRUE(Identity(partial_ordering::greater > 0)); in TEST()
76 EXPECT_TRUE(Identity(0 < partial_ordering::greater)); in TEST()
77 EXPECT_TRUE(Identity(partial_ordering::greater >= 0)); in TEST()
78 EXPECT_TRUE(Identity(0 <= partial_ordering::greater)); in TEST()
[all …]
Dcompare.h252 class partial_ordering
253 : public compare_internal::partial_ordering_base<partial_ordering> {
254 explicit constexpr partial_ordering(compare_internal::eq v) noexcept
256 explicit constexpr partial_ordering(compare_internal::ord v) noexcept
258 explicit constexpr partial_ordering(compare_internal::ncmp v) noexcept
260 friend struct compare_internal::partial_ordering_base<partial_ordering>;
268 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, less);
269 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, equivalent);
270 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, greater);
271 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, unordered);
[all …]
/external/libtextclassifier/abseil-cpp/absl/types/
Dcompare_test.cc69 EXPECT_TRUE(Identity(partial_ordering::less < 0)); in TEST()
70 EXPECT_TRUE(Identity(0 > partial_ordering::less)); in TEST()
71 EXPECT_TRUE(Identity(partial_ordering::less <= 0)); in TEST()
72 EXPECT_TRUE(Identity(0 >= partial_ordering::less)); in TEST()
73 EXPECT_TRUE(Identity(partial_ordering::equivalent == 0)); in TEST()
74 EXPECT_TRUE(Identity(0 == partial_ordering::equivalent)); in TEST()
75 EXPECT_TRUE(Identity(partial_ordering::greater > 0)); in TEST()
76 EXPECT_TRUE(Identity(0 < partial_ordering::greater)); in TEST()
77 EXPECT_TRUE(Identity(partial_ordering::greater >= 0)); in TEST()
78 EXPECT_TRUE(Identity(0 <= partial_ordering::greater)); in TEST()
[all …]
Dcompare.h252 class partial_ordering
253 : public compare_internal::partial_ordering_base<partial_ordering> {
254 explicit constexpr partial_ordering(compare_internal::eq v) noexcept
256 explicit constexpr partial_ordering(compare_internal::ord v) noexcept
258 explicit constexpr partial_ordering(compare_internal::ncmp v) noexcept
260 friend struct compare_internal::partial_ordering_base<partial_ordering>;
268 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, less);
269 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, equivalent);
270 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, greater);
271 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, unordered);
[all …]
/external/abseil-cpp/absl/types/
Dcompare_test.cc69 EXPECT_TRUE(Identity(partial_ordering::less < 0)); in TEST()
70 EXPECT_TRUE(Identity(0 > partial_ordering::less)); in TEST()
71 EXPECT_TRUE(Identity(partial_ordering::less <= 0)); in TEST()
72 EXPECT_TRUE(Identity(0 >= partial_ordering::less)); in TEST()
73 EXPECT_TRUE(Identity(partial_ordering::equivalent == 0)); in TEST()
74 EXPECT_TRUE(Identity(0 == partial_ordering::equivalent)); in TEST()
75 EXPECT_TRUE(Identity(partial_ordering::greater > 0)); in TEST()
76 EXPECT_TRUE(Identity(0 < partial_ordering::greater)); in TEST()
77 EXPECT_TRUE(Identity(partial_ordering::greater >= 0)); in TEST()
78 EXPECT_TRUE(Identity(0 <= partial_ordering::greater)); in TEST()
[all …]
Dcompare.h250 class partial_ordering
251 : public compare_internal::partial_ordering_base<partial_ordering> {
252 explicit constexpr partial_ordering(compare_internal::eq v) noexcept
254 explicit constexpr partial_ordering(compare_internal::ord v) noexcept
256 explicit constexpr partial_ordering(compare_internal::ncmp v) noexcept
258 friend struct compare_internal::partial_ordering_base<partial_ordering>;
266 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, less);
267 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, equivalent);
268 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, greater);
269 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, unordered);
[all …]
/external/webrtc/third_party/abseil-cpp/absl/types/
Dcompare_test.cc69 EXPECT_TRUE(Identity(partial_ordering::less < 0)); in TEST()
70 EXPECT_TRUE(Identity(0 > partial_ordering::less)); in TEST()
71 EXPECT_TRUE(Identity(partial_ordering::less <= 0)); in TEST()
72 EXPECT_TRUE(Identity(0 >= partial_ordering::less)); in TEST()
73 EXPECT_TRUE(Identity(partial_ordering::equivalent == 0)); in TEST()
74 EXPECT_TRUE(Identity(0 == partial_ordering::equivalent)); in TEST()
75 EXPECT_TRUE(Identity(partial_ordering::greater > 0)); in TEST()
76 EXPECT_TRUE(Identity(0 < partial_ordering::greater)); in TEST()
77 EXPECT_TRUE(Identity(partial_ordering::greater >= 0)); in TEST()
78 EXPECT_TRUE(Identity(0 <= partial_ordering::greater)); in TEST()
[all …]
Dcompare.h250 class partial_ordering
251 : public compare_internal::partial_ordering_base<partial_ordering> {
252 explicit constexpr partial_ordering(compare_internal::eq v) noexcept
254 explicit constexpr partial_ordering(compare_internal::ord v) noexcept
256 explicit constexpr partial_ordering(compare_internal::ncmp v) noexcept
258 friend struct compare_internal::partial_ordering_base<partial_ordering>;
266 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, less);
267 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, equivalent);
268 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, greater);
269 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, unordered);
[all …]
/external/openscreen/third_party/abseil/src/absl/types/
Dcompare_test.cc69 EXPECT_TRUE(Identity(partial_ordering::less < 0)); in TEST()
70 EXPECT_TRUE(Identity(0 > partial_ordering::less)); in TEST()
71 EXPECT_TRUE(Identity(partial_ordering::less <= 0)); in TEST()
72 EXPECT_TRUE(Identity(0 >= partial_ordering::less)); in TEST()
73 EXPECT_TRUE(Identity(partial_ordering::equivalent == 0)); in TEST()
74 EXPECT_TRUE(Identity(0 == partial_ordering::equivalent)); in TEST()
75 EXPECT_TRUE(Identity(partial_ordering::greater > 0)); in TEST()
76 EXPECT_TRUE(Identity(0 < partial_ordering::greater)); in TEST()
77 EXPECT_TRUE(Identity(partial_ordering::greater >= 0)); in TEST()
78 EXPECT_TRUE(Identity(0 <= partial_ordering::greater)); in TEST()
[all …]
Dcompare.h252 class partial_ordering
253 : public compare_internal::partial_ordering_base<partial_ordering> {
254 explicit constexpr partial_ordering(compare_internal::eq v) noexcept
256 explicit constexpr partial_ordering(compare_internal::ord v) noexcept
258 explicit constexpr partial_ordering(compare_internal::ncmp v) noexcept
260 friend struct compare_internal::partial_ordering_base<partial_ordering>;
268 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, less);
269 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, equivalent);
270 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, greater);
271 ABSL_COMPARE_INLINE_SUBCLASS_DECL(partial_ordering, unordered);
[all …]
/external/llvm-project/libcxx/include/
Dcompare20 class partial_ordering;
27 constexpr bool is_lt (partial_ordering cmp) noexcept { return cmp < 0; }
28 constexpr bool is_lteq(partial_ordering cmp) noexcept { return cmp <= 0; }
29 constexpr bool is_gt (partial_ordering cmp) noexcept { return cmp > 0; }
30 constexpr bool is_gteq(partial_ordering cmp) noexcept { return cmp >= 0; }
43 template<class T> constexpr partial_ordering partial_order(const T& a, const T& b);
47 // [cmp.partialord], Class partial_ordering
48 class partial_ordering {
51 static const partial_ordering less;
52 static const partial_ordering equivalent;
[all …]
/external/llvm-project/clang/test/CXX/class/class.compare/class.spaceship/
Dp2.cpp25 class partial_ordering { class
27 constexpr partial_ordering(int n) : n(n) {} in partial_ordering() function in std::partial_ordering
29 constexpr partial_ordering(strong_ordering o);
30 constexpr partial_ordering(weak_ordering o);
31 static const partial_ordering less, equivalent, greater, unordered;
34 constexpr partial_ordering partial_ordering::less{-1},
35 partial_ordering::equivalent{0}, partial_ordering::greater{1},
36 partial_ordering::unordered{2};
91 template void f<std::partial_ordering, partial>();
92 template void f<std::partial_ordering, weak, partial>();
[all …]
Dp1.cpp22 struct partial_ordering { struct
24 constexpr partial_ordering(double d) : d(d) {} in partial_ordering() argument
25 constexpr partial_ordering(strong_ordering o) : d(o.n) {} in partial_ordering() function
26 constexpr partial_ordering(weak_ordering o) : d(o.n) {} in partial_ordering() function
28 static const partial_ordering less, equivalent, greater, unordered; argument
30 constexpr partial_ordering partial_ordering::less{-1},
31 partial_ordering::equivalent{0}, partial_ordering::greater{1},
32 partial_ordering::unordered{__builtin_nan("")};
34 static_assert(!(partial_ordering::unordered < 0));
35 static_assert(!(partial_ordering::unordered == 0));
[all …]
/external/libcxx/include/
Dcompare21 class partial_ordering;
28 constexpr bool is_lt (partial_ordering cmp) noexcept { return cmp < 0; }
29 constexpr bool is_lteq(partial_ordering cmp) noexcept { return cmp <= 0; }
30 constexpr bool is_gt (partial_ordering cmp) noexcept { return cmp > 0; }
31 constexpr bool is_gteq(partial_ordering cmp) noexcept { return cmp >= 0; }
44 template<class T> constexpr partial_ordering partial_order(const T& a, const T& b);
207 class partial_ordering {
211 explicit constexpr partial_ordering(_EqResult __v) noexcept
215 explicit constexpr partial_ordering(_OrdResult __v) noexcept
219 explicit constexpr partial_ordering(_NCmpResult __v) noexcept
[all …]
/external/libcxx/test/std/language.support/cmp/cmp.weakord/
Dweakord.pass.cpp72 std::partial_ordering>::value, ""); in test_conversion()
75 std::partial_ordering WV = V; in test_conversion()
80 std::partial_ordering WV = V; in test_conversion()
85 std::partial_ordering WV = V; in test_conversion()
/external/llvm-project/libcxx/test/std/language.support/cmp/cmp.weakord/
Dweakord.pass.cpp71 std::partial_ordering>::value, ""); in test_conversion()
74 std::partial_ordering WV = V; in test_conversion()
79 std::partial_ordering WV = V; in test_conversion()
84 std::partial_ordering WV = V; in test_conversion()
/external/llvm-project/clang/test/SemaCXX/
Dstd-compare-cxx2a.cpp28 struct partial_ordering; // expected-note {{forward declaration}}
39 struct partial_ordering { struct
/external/libcxx/test/std/language.support/cmp/cmp.strongord/
Dstrongord.pass.cpp95 std::partial_ordering>::value, ""); in test_conversion()
98 std::partial_ordering WV = V; in test_conversion()
103 std::partial_ordering WV = V; in test_conversion()
108 std::partial_ordering WV = V; in test_conversion()

12