3 /// cursor which feels like a pointer
5 struct PCursor : public Cursor<T> {
7 /// make cursor with #no# items back
8 PCursor<T> operator -( int no) const {
9 return PCursor<T> (Cursor<T>::operator-(no));
12 /// make cursor with #no# items further
13 PCursor<T> operator +( int no) const {
14 return PCursor<T> (Cursor<T>::operator+(no));
16 PCursor(List<T> & l) : Cursor<T> (l) {}
18 PCursor( const Cursor<T>& cursor ) : Cursor<T>(cursor) { }
19 T operator ->() { return *(*this); }
23 HWN: I'd like an operator->(), so here it is.
25 Cursor to go with pointer list.