/*************************************************************************

 IBM(R) VisualAge(TM) C++ for OS/2(R), Version 3
  - Collection Class Library -

 (C) Copyright IBM Corp. 1991, 1995.
  - Licensed Material - Program-Property of IBM - All Rights Reserved.

 *************************************************************************/

Tutorial 2: Adding, removing and replacing elements.
            Changing the type of the list from an ordinary
            SEQUENCE to an EQUALITY SEQUENCE.
            Defining an list type SET.
            You want to manage collections of people.

1) Based on the list from tutorial 1 (which is a SEQUENCE) change the
   list from an ordinary SEQUENCE to the (default) EQUALITY SEQUENCE.
   Which header-files must now be included and what is now the typedef
   statement to define your collection of Person?
2) Add your name to the list.
3) Remove  T. Wappler from the list.
   Remember you have changed the sequence so that removing is possible.
   What additional operator has to be provided by the class Person?
ANSWER: You have to provide the equality operator for the class Person.
This is needed to 'locate' the element you want to remove.
4) Write a typedef statement to define your set of Person.
   Which file do you have to include?
   Which default implementation are you using?
ANSWER: You are using an AVL Tree as an implementation.
5) Create a set of people and add "Joe Cool" and "Mr. Nobody" to this
   set.  What function has  to be provided for the class Person?
ANSWER: An AVL is a sorted tree that requires a 'compare' function
6) Replace "Joe Cool" by "MR. Somebody" in the Set.
7) Add "Mr. Somebody" to the Set.

Have a look at the results with your debugger.
