src/scp/LocalNode.cpp
void
LocalNode::forAllNodes(SCPQuorumSet const& qset,
                       std::function<void(NodeID const&)> proc)
{
    std::set<NodeID> done;
    forAllNodesInternal(qset, [&](NodeID const& n) {
        auto ins = done.insert(n);
        if (ins.second)
        {
            proc(n);
        }
    });
}
// runs proc over all nodes contained in qset
runs proc over all nodes contained in qset
runs proc over all nodes contained in qset
void
LocalNode::forAllNodes(SCPQuorumSet const& qset,
                       std::function<void(NodeID const&)> proc)
{
    std::set<NodeID> done;
    forAllNodesInternal(qset, [&](NodeID const& n) {
        auto ins = done.insert(n);
        if (ins.second)
        {
            proc(n);
        }
    });
}
void LocalNode :: forAllNodes ( SCPQuorumSet const & qset , std :: function < void ( NodeID const & ) > proc ) { std :: set < NodeID > done ; forAllNodesInternal ( qset , [ & ] ( NodeID const & n ) { auto ins = done . insert ( n ) ; if ( ins . second ) { proc ( n ) ; } } ) ; }
runs proc over all nodes contained in qset
runs proc over all nodes contained in qset