src/zookeeper/group.cpp
// Set all owned memberships as cancelled.
Set all owned memberships as cancelled.
Set all owned memberships as cancelled .
foreachpair (uint64_t sequence, Promise<bool>* cancelled, utils::copy(owned)) {
    cancelled->set(false); 
    owned.erase(sequence); 
    delete cancelled;
  }
foreachpair ( uint64_t sequence , Promise < bool > * cancelled , utils :: copy ( owned ) ) { cancelled -> set ( false ) ; owned . erase ( sequence ) ; delete cancelled ; }
Set all owned memberships as cancelled.
Set all owned memberships as cancelled .
// Since this was not requested. // Okay since iterating over a copy.