20 #ifndef RIPPLE_PEERFINDER_SIM_PREDICATES_H_INCLUDED
21 #define RIPPLE_PEERFINDER_SIM_PREDICATES_H_INCLUDED
24 namespace PeerFinder {
29 template <
typename Node>
36 template <
typename Link>
40 return &
node == &l.remote_node();
47 template <
typename Node>
54 template <
typename Node>
55 is_remote_node_pred<Node>
72 template <
typename Link>
is_remote_node_pred< Node > is_remote_node(Node const &node)
UnaryPredicate, true if the remote address matches.
is_remote_node_pred(Node const &n)
bool operator()(Link const &link) const
const beast::IP::Endpoint m_endpoint
UnaryPredicate, returns true if the 'to' node on a Link matches.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool operator()(Link const &l) const
A version-independent IP address and port combination.
is_remote_endpoint(beast::IP::Endpoint const &address)