We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
operator<=>
pthread.h
1 parent 696ecec commit 23b2f2fCopy full SHA for 23b2f2f
newlib/libc/sys/hermit/include/pthread.h
@@ -1001,6 +1001,16 @@ extern "C" {
1001
{
1002
return ((size_t) l.p) == ((size_t) r.p);
1003
}
1004
+
1005
+ // Operator to be compatible to libstd++
1006
+ #if __cplusplus > 201703L
1007
+ #include <compare>
1008
1009
+ inline std::strong_ordering operator<=>(pte_handle_t const& l, pte_handle_t const& r)
1010
+ {
1011
+ return ((size_t) l.p) <=> ((size_t) r.p);
1012
+ }
1013
+ #endif
1014
#endif
1015
1016
0 commit comments