MCPcopy Create free account
hub / github.com/Profactor/cv-plot / IteratorGenerator

Method IteratorGenerator

CvPlot/ext/catch2/inc/catch.hpp:4662–4666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4660public:
4661 template <typename InputIterator, typename InputSentinel>
4662 IteratorGenerator(InputIterator first, InputSentinel last):m_elems(first, last) {
4663 if (m_elems.empty()) {
4664 Catch::throw_exception(GeneratorException("IteratorGenerator received no valid values"));
4665 }
4666 }
4667
4668 T const& get() const override {
4669 return m_elems[m_current];

Callers

nothing calls this directly

Calls 3

throw_exceptionFunction · 0.85
GeneratorExceptionClass · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected