From 16f17ee502fe36362c0440bd6b7e561463505696 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 2 Oct 2023 10:49:54 +0200 Subject: [PATCH] Add an operator != --- include/podio/ObjectID.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/podio/ObjectID.h b/include/podio/ObjectID.h index c096bc613..3c847404e 100644 --- a/include/podio/ObjectID.h +++ b/include/podio/ObjectID.h @@ -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) {