Bladeren bron

兼容Android

tags/2.9.10
tearshark 4 jaren geleden
bovenliggende
commit
3b6cfd4d31
1 gewijzigde bestanden met toevoegingen van 15 en 3 verwijderingen
  1. 15
    3
      librf/src/unix/coroutine.h

+ 15
- 3
librf/src/unix/coroutine.h Bestand weergeven

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

Laden…
Annuleren
Opslaan