mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 16:03:33 +08:00
NodeID comparison operators
This commit is contained in:
@@ -95,6 +95,11 @@ public:
|
||||
|
||||
bool operator!=(NodeID rhs) const { return !operator==(rhs); }
|
||||
bool operator==(NodeID rhs) const { return value_ == rhs.value_; }
|
||||
|
||||
bool operator<(NodeID rhs) const { return value_ < rhs.value_; }
|
||||
bool operator>(NodeID rhs) const { return value_ > rhs.value_; }
|
||||
bool operator<=(NodeID rhs) const { return value_ <= rhs.value_; }
|
||||
bool operator>=(NodeID rhs) const { return value_ >= rhs.value_; }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user