mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-01 08:25:51 +00:00
Add IPEndpoint::key_equal
This commit is contained in:
@@ -324,6 +324,8 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct key_equal;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Type m_type;
|
Type m_type;
|
||||||
uint16 m_port;
|
uint16 m_port;
|
||||||
@@ -363,6 +365,14 @@ std::istream& operator>> (std::istream& is, IPEndpoint& ep);
|
|||||||
//std::istream& operator>> (std::istream &is, IPEndpoint::V6&);
|
//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
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user