///////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//         This example code is from the book:
//
//           Object-Oriented Programming with C++ and OSF/Motif, 2nd Edition
//         by
//           Douglas Young
//           Prentice Hall, 1995
//           ISBN 0-13-20925507
//
//         Copyright 1995 by Prentice Hall
//         All Rights Reserved
//
//  Permission to use, copy, modify, and distribute this software for 
//  any purpose except publication and without fee is hereby granted, provided 
//  that the above copyright notice appear in all copies of the software.
///////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
    _data = (T*) XtRealloc((char *) _data, sizeof(T) * (_size + 1));
    
    _data[_size] = t;
    
    _size++;
}

template <class T>
    void SimpleList<T>::remove(T t)
{
    for(int i = 0; i < _size; i++)
	if(_data[i] == t)
	{
	    _size--;
	    
	    for(int j = i; j < _size; j++)
		_data[j] = _data[j+1];
	    
	    _data = (T*) XtRealloc((char *) _data, sizeof(T) * _size );
	    
	    return;
	}
}






