Class GeneratorWrapper

Synopsis

#include <include/internal/catch_generators.hpp>

template <typename T>
class GeneratorWrapper final

Description

No description yet.

Mentioned in

Methods

GeneratorWrapper
get
next

Source

Lines 90-103 in include/internal/catch_generators.hpp.

template <typename T>
class GeneratorWrapper final {
    std::unique_ptr<IGenerator<T>> m_generator;
public:
    GeneratorWrapper(std::unique_ptr<IGenerator<T>> generator):
        m_generator(std::move(generator))
    {}
    T const& get() const {
        return m_generator->get();
    }
    bool next() {
        return m_generator->next();
    }
};





Add Discussion as Guest

Log in