Selaa lähdekoodia

兼容Android

tags/2.9.10
tearshark 4 vuotta sitten
vanhempi
commit
3b6cfd4d31
1 muutettua tiedostoa jossa 15 lisäystä ja 3 poistoa
  1. 15
    3
      librf/src/unix/coroutine.h

+ 15
- 3
librf/src/unix/coroutine.h Näytä tiedosto

@@ -116,11 +116,23 @@ namespace std {
};

// 17.12.3.6, comparison operators
constexpr bool operator==(coroutine_handle<> __x, coroutine_handle<> __y) noexcept {
inline bool operator==(coroutine_handle<> __x, coroutine_handle<> __y) noexcept {
return __x.address() == __y.address();
}
constexpr strong_ordering operator<=>(coroutine_handle<> __x, coroutine_handle<> __y) noexcept {
return __x.address() <=> __y.address();
inline bool operator!=(coroutine_handle<> __x, coroutine_handle<> __y) noexcept {
return __x.address() != __y.address();
}
inline bool operator<(coroutine_handle<> __x, coroutine_handle<> __y) noexcept {
return __x.address() < __y.address();
}
inline bool operator>(coroutine_handle<> __x, coroutine_handle<> __y) noexcept {
return __x.address() > __y.address();
}
inline bool operator<=(coroutine_handle<> __x, coroutine_handle<> __y) noexcept {
return __x.address() <= __y.address();
}
inline bool operator>=(coroutine_handle<> __x, coroutine_handle<> __y) noexcept {
return __x.address() >= __y.address();
}

template <typename _Promise>

Loading…
Peruuta
Tallenna