MCPcopy Create free account
hub / github.com/RenderKit/oidn / RangeGenerator

Method RangeGenerator

external/catch.hpp:4667–4676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4665
4666public:
4667 RangeGenerator(T const& start, T const& end, T const& step):
4668 m_current(start),
4669 m_end(end),
4670 m_step(step),
4671 m_positive(m_step > T(0))
4672 {
4673 assert(m_current != m_end && "Range start and end cannot be equal");
4674 assert(m_step != T(0) && "Step size cannot be zero");
4675 assert(((m_positive && m_current <= m_end) || (!m_positive && m_current >= m_end)) && "Step moves away from end");
4676 }
4677
4678 RangeGenerator(T const& start, T const& end):
4679 RangeGenerator(start, end, (start < end) ? T(1) : T(-1))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected