Expand description
Comparison operator traits
C++’s comparison operators have different semantics from Rust’s PartialOrd
and Ord
traits.
If all the operators (Lt
, Le
, Gt
, Ge
) are implemented for a type, the pointer types
(CppBox
, Ptr
, Ref
) automatically implement PartialOrd
.