MCPcopy Create free account
hub / github.com/apache/trafficserver / IteratorGenerator

Method IteratorGenerator

lib/catch2/catch.hpp:4721–4725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4719public:
4720 template <typename InputIterator, typename InputSentinel>
4721 IteratorGenerator(InputIterator first, InputSentinel last):m_elems(first, last) {
4722 if (m_elems.empty()) {
4723 Catch::throw_exception(GeneratorException("IteratorGenerator received no valid values"));
4724 }
4725 }
4726
4727 T const& get() const override {
4728 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