Function IteratorGenerator

Synopsis

#include <include/internal/catch_generators_specific.hpp>

template <typename InputIterator, typename InputSentinel>
IteratorGenerator(InputIterator first, InputSentinel last)

Description

No description yet.

Source

Lines 140-145 in include/internal/catch_generators_specific.hpp.

template <typename InputIterator, typename InputSentinel>
IteratorGenerator(InputIterator first, InputSentinel last):m_elems(first, last) {
    if (m_elems.empty()) {
        Catch::throw_exception(GeneratorException("IteratorGenerator received no valid values"));
    }
}





Add Discussion as Guest

Log in