mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 06:55:50 +00:00
Add IPEndpoint::key_equal
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user