| 4665 | |
| 4666 | public: |
| 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)) |
nothing calls this directly
no outgoing calls
no test coverage detected