Skip to content

Commit

Permalink
Add an operator != to podio::ObjectID (#496)
Browse files Browse the repository at this point in the history
Co-authored-by: jmcarcell <[email protected]>
  • Loading branch information
jmcarcell and jmcarcell authored Oct 2, 2023
1 parent 958ae51 commit 2bf7c49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/podio/ObjectID.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class ObjectID {
bool operator==(const ObjectID& other) const {
return index == other.index && collectionID == other.collectionID;
}
bool operator!=(const ObjectID& other) const {
return !(*this == other);
}
};

inline std::ostream& operator<<(std::ostream& os, const podio::ObjectID& id) {
Expand Down

0 comments on commit 2bf7c49

Please sign in to comment.