MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / IteratorGenerator

Method IteratorGenerator

tests/catch.hpp:5772–5779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5770public:
5771 template<typename InputIterator, typename InputSentinel>
5772 IteratorGenerator(InputIterator first, InputSentinel last)
5773 : m_elems(first, last)
5774 {
5775 if (m_elems.empty()) {
5776 Catch::throw_exception(GeneratorException(
5777 "IteratorGenerator received no valid values"));
5778 }
5779 }
5780
5781 T const &get() const override { return m_elems[m_current]; }
5782

Callers

nothing calls this directly

Calls 3

throw_exceptionFunction · 0.85
GeneratorExceptionClass · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected