You are viewing a single comment's thread from:

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

in #frankbacon6 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()));
        }
    }
};

Coin Marketplace

STEEM 0.20
TRX 0.14
JST 0.030
BTC 66683.89
ETH 3311.03
USDT 1.00
SBD 2.70