Bläddra i källkod

兼容Android

tags/2.9.10
tearshark 4 år sedan
förälder
incheckning
3b6cfd4d31
1 ändrade filer med 15 tillägg och 3 borttagningar
  1. 15
    3
      librf/src/unix/coroutine.h

+ 15
- 3
librf/src/unix/coroutine.h Visa fil

@@ -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>

Laddar…
Avbryt
Spara