... and define it this way:
template<class T> ArraySeq<T>::ArraySeq
(const T* p0, int n0):
p(p0), n(n0) { }
template<class T>
bool ArraySeq<T>::valid() {
return n > 0;
}
template<class T> T ArraySeq<T>::next()
{
--n; return *p++;
}
Previous slide
Next slide
Back to first slide
View graphic version