ns-allinone-2.35/rap/raplist.cc
void List::Append(void *item)
{
  ListElement *element = new ListElement(item, 0);
  if (IsEmpty()) 
    {				// List is empty
      first = element;
      last = element;
    } 
  else 
    {				// else put it after last
      last->next = element;
      last = element;
    }
  
  size++;
}
//----------------------------------------------------------------------
// List::Append
//      Append an "item" to the end of the List.
//      
//	Allocate a ListElement to keep track of the item.
//      If the List is empty, then this will be the only element.
//	Otherwise, put it at the end.
//
//	"item" is the thing to put on the List, it can be a pointer to 
//		anything.
//----------------------------------------------------------------------
:Append
Append an "item" to the end of the List.

Allocate a ListElement to keep track of the item.
If the List is empty, then this will be the only element.
Otherwise, put it at the end.

"item" is the thing to put on the List, it can be a pointer to
anything.
: Append Append an " item " to the end of the List . Allocate a ListElement to keep track of the item . If the List is empty then this will be the only element . Otherwise put it at the end . " item " is the thing to put on the List it can be a pointer to anything .
void List::Append(void *item)
{
  ListElement *element = new ListElement(item, 0);
  if (IsEmpty()) 
    {				
      first = element;
      last = element;
    } 
  else 
    {				
      last->next = element;
      last = element;
    }
  size++;
}
void List :: Append ( void * item ) { ListElement * element = new ListElement ( item , 0 ) ; if ( IsEmpty ( ) ) { first = element ; last = element ; } else { last -> next = element ; last = element ; } size ++ ; }
List::Append
Append an "item" to the end of the List.
List :: Append Append an " item " to the end of the List .
// List is empty // else put it after last