RE: @michaeldecon & @frankbacon PhoneTimeHack SteemPunkRadio!! Are these the END OF DAYS?

You are viewing a single comment's thread from:

@michaeldecon & @frankbacon PhoneTimeHack SteemPunkRadio!! Are these the END OF DAYS?

in frankbacon •  7 years ago 
template <class branch, class branches, class extends = searchert<branch> >
class breadth_first_searcht: public brancht<branch, branches, extends> {
public:
    breadth_first_searcht() {}
    breadth_first_searcht(branch* v) { this->search(v); }
    virtual void search(branch* v) {
        if (v) {
            do {
                if (this->found(v)) { break; }
                for (auto b: v->branches()) {
                    this->queue_branch(b);
                }
            } while ((v = this->pop_branch()));
        }
    }
};
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Screen Shot 2016-11-23 at 2.17.31 PM.png