Function MapGenerator

Synopsis

#include <include/internal/catch_generators_generic.hpp>

template <typename F2 = Func>
MapGenerator(F2 &&function, GeneratorWrapper< U > &&generator)

Description

No description yet.

Source

Lines 157-162 in include/internal/catch_generators_generic.hpp.

template <typename F2 = Func>
MapGenerator(F2&& function, GeneratorWrapper<U>&& generator) :
    m_generator(std::move(generator)),
    m_function(std::forward<F2>(function)),
    m_cache(m_function(m_generator.get()))
{}





Add Discussion as Guest

Log in