Function next

Synopsis

#include <include/internal/catch_generators_generic.hpp>

bool next() override

Description

No description yet.

Source

Lines 214-223 in include/internal/catch_generators_generic.hpp.

bool next() override {
    m_chunk.clear();
    for (size_t idx = 0; idx < m_chunk_size; ++idx) {
        if (!m_generator.next()) {
            return false;
        }
        m_chunk.push_back(m_generator.get());
    }
    return true;
}





Add Discussion as Guest

Log in