Function next

Synopsis

#include <include/internal/catch_generators.hpp>

bool next() override

Description

No description yet.

Source

Lines 146-155 in include/internal/catch_generators.hpp.

bool next() override {
    if (m_current >= m_generators.size()) {
        return false;
    }
    const bool current_status = m_generators[m_current].next();
    if (!current_status) {
        ++m_current;
    }
    return m_current < m_generators.size();
}





Add Discussion as Guest

Log in