Add IPEndpoint::key_equal

This commit is contained in:
Vinnie Falco
2013-10-05 02:38:48 -07:00
parent ebf395ecc4
commit 67d807d8fc

View File

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