

//  Sample program illustrating instantiation of B-tree template
//
// M. A. Sridhar, Aug 18, 1995


#include "company.h"
#include "base/tbtree.h"
#include "base/set.h"
#include "base/sequence.h"
#include "base/memory.h"

#include <iostream.h>

main ()
{
    CL_MemoryLeakChecker ck (cout);
    
    CL_BTree<Company> tree;
    Company ibm   ("IBM", "Armonk, NY", "800-3IBMOS2");
    tree.Add (ibm);
    Company mSoft ("Microsoft", "Redmond, WA", "800-GOWINNT");
    tree.Add (mSoft);

    cout << tree;
    
    CL_Sequence<Company> cmpSeq;
    CL_Set<Company>      cmpSet;

    cmpSeq.Add (ibm);
    cmpSeq.Add (mSoft);
    cmpSeq.Add (ibm);
    cmpSet.Add (mSoft);
    cmpSet.Add (ibm);
    cmpSet.Add (ibm);
    return 0;
}
