7 List<T>::List(List const&src)
10 // probably el stupido
11 for (Cursor<T> c(src); c.ok(); c++)
52 \item if #after_me# is #ok()#, add after #after_me#, else
53 \item if list !empty simply add to bottom, else
54 \item list is empty: create first \Ref{Link} and initialize
60 List<T>::add( const T& thing, Cursor<T> &after_me )
62 if (!size_) { // not much choice if list is empty
63 bottom_ = top_ = new Link<T>( thing );
66 } else { // add at aprioprate place
69 Link<T> *p =after_me.pointer();
71 if (p == bottom_) // adjust bottom_ if necessary.
80 List<T>::insert( const T& thing, Cursor<T> &before_me )
83 bottom_ = top_ = new Link<T>( thing );
91 Link<T> *p = before_me.pointer() ;
104 List<T>::concatenate(List<T> const&s)
106 Cursor<T> b(bottom());
107 for (Cursor<T> c(s); c.ok(); c++) {