From e6f9ab929df19ba667441b005ae2b9771922a92c Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 6 Dec 2018 12:47:58 -0800 Subject: More speed stuff. --- node/Multicaster.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'node/Multicaster.hpp') diff --git a/node/Multicaster.hpp b/node/Multicaster.hpp index e57f81fe..c6c2a209 100644 --- a/node/Multicaster.hpp +++ b/node/Multicaster.hpp @@ -203,6 +203,10 @@ private: MulticastGroupMember() {} MulticastGroupMember(const Address &a,uint64_t ts) : address(a),timestamp(ts) {} + inline bool operator<(const Address &a) const { return (address < a); } + inline bool operator==(const Address &a) const { return (address == a); } + inline bool operator!=(const Address &a) const { return (address != a); } + Address address; uint64_t timestamp; // time of last notification }; -- cgit v1.2.3