mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
EventHandler: Support operator!=
This commit is contained in:
parent
5ef6902331
commit
e395332e7b
1 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,8 @@ public:
|
||||||
|
|
||||||
bool operator==(const EventHandlerPtr& h) const { return handler == h.handler; }
|
bool operator==(const EventHandlerPtr& h) const { return handler == h.handler; }
|
||||||
|
|
||||||
|
bool operator!=(const EventHandlerPtr& h) const { return ! (*this == h); }
|
||||||
|
|
||||||
EventHandler* Ptr() { return handler; }
|
EventHandler* Ptr() { return handler; }
|
||||||
|
|
||||||
explicit operator bool() const { return handler && *handler; }
|
explicit operator bool() const { return handler && *handler; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue