Example from last lecture
template<class X>
bool find(InSeq<X>& s, X x)
{
while (s.avail()) {
if (s.next() == x)
return true;
}
return false;
}
Where does this class rely on its argument being an InSeq?
Previous slide
Next slide
Back to first slide
View graphic version