소스 검색

兼容Android

tags/2.9.10
tearshark 4 년 전
부모
커밋
3b6cfd4d31
1개의 변경된 파일15개의 추가작업 그리고 3개의 파일을 삭제
  1. 15
    3
      librf/src/unix/coroutine.h

+ 15
- 3
librf/src/unix/coroutine.h 파일 보기

@@ -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…
취소
저장