#ifndef _SET_H_ #define _SET_H_ #include "Cref.h" #include using std::vector; class IllegalRemoveException { }; template class Set { public: Cref find( const Object & x ) const; bool isEmpty( ) const; void makeEmpty( ); void insert( const Object & x ); void remove( const Object & x ); private: vector items; enum { NOT_FOUND = -1 }; int findLoc( const Object & x ) const; }; #endif