MCPcopy Create free account
hub / github.com/cinemast/libjson-rpc-cpp / IteratorGenerator

Method IteratorGenerator

src/catch2/catch.hpp:4714–4718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4712public:
4713 template <typename InputIterator, typename InputSentinel>
4714 IteratorGenerator(InputIterator first, InputSentinel last):m_elems(first, last) {
4715 if (m_elems.empty()) {
4716 Catch::throw_exception(GeneratorException("IteratorGenerator received no valid values"));
4717 }
4718 }
4719
4720 T const& get() const override {
4721 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