Function next

Synopsis

#include <include/internal/catch_generators_generic.hpp>

bool next() override

Description

No description yet.

Source

Lines 77-84 in include/internal/catch_generators_generic.hpp.

bool next() override {
    bool success = m_generator.next();
    if (!success) {
        return false;
    }
    while (!m_predicate(m_generator.get()) && (success = m_generator.next()) == true);
    return success;
}





Add Discussion as Guest

Log in