From 67d807d8fce4fc40659d5c6207f86669af8724e1 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sat, 5 Oct 2013 02:38:48 -0700 Subject: [PATCH] Add IPEndpoint::key_equal --- beast/net/IPEndpoint.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/beast/net/IPEndpoint.h b/beast/net/IPEndpoint.h index e9075a3ac2..1852297179 100644 --- a/beast/net/IPEndpoint.h +++ b/beast/net/IPEndpoint.h @@ -324,6 +324,8 @@ public: } }; + struct key_equal; + private: Type m_type; uint16 m_port; @@ -363,6 +365,14 @@ std::istream& operator>> (std::istream& is, IPEndpoint& ep); //std::istream& operator>> (std::istream &is, IPEndpoint::V6&); /** @} */ +struct IPEndpoint::key_equal +{ + bool operator() (IPEndpoint const& lhs, IPEndpoint const& rhs) const + { + return lhs == rhs; + } +}; + } #endif