More speed stuff.

This commit is contained in:
Adam Ierymenko 2018-12-06 12:47:58 -08:00
parent 18d1772bb4
commit e6f9ab929d
4 changed files with 18 additions and 11 deletions

View file

@ -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
};