35 const auto pos = std::find_if(
storage.begin(),
storage.end(), [&](
const auto &storePeer) {
36 return storePeer.get() == peer;
#define Assure(condition)
const CachePeers & CurrentCachePeers()
void DeleteConfigured(CachePeer *const peer)
destroys the given peer after removing it from the set of configured peers
cache_peer configuration storage
CachePeer & nextPeerToPing(size_t iteration)
Storage storage
cache_peers in configuration/parsing order
void remove(CachePeer *)
deletes a previously add()ed CachePeer object
auto size() const
the number of currently stored (i.e. added and not removed) cache_peers
uint64_t peerPolls_
total number of completed peer scans by nextPeerToPing()-calling code