home *** CD-ROM | disk | FTP | other *** search
/ PC Media 7 / PC MEDIA CD07.iso / share / prog / cm / cmtbag.cc < prev    next >
Encoding:
Text File  |  1994-09-06  |  898 b   |  30 lines

  1. // CmTBag.cc
  2. // -----------------------------------------------------------------
  3. // Compendium - C++ Container Class Library
  4. // Copyright (C) 1992-1994, Glenn M. Poorman, All rights reserved
  5. // -----------------------------------------------------------------
  6. // Bag template implementation.
  7. // -----------------------------------------------------------------
  8.  
  9.  
  10. // "CmTBag" is the default bag constructor.
  11. //
  12. template <class T> CmTBag<T>::CmTBag(unsigned sz)
  13.                             : CmTHashTable<T>(sz)
  14. {}
  15.  
  16.  
  17. // "CmTBag" is the bag copy constructor.
  18. //
  19. template <class T> CmTBag<T>::CmTBag(const CmTBag<T>& B)
  20.                             : CmTHashTable<T>(B)
  21. {}
  22.  
  23.  
  24. // "=" assignment operator copies the specified bag into this bag.
  25. //
  26. template <class T> CmTBag<T>& CmTBag<T>::operator=(const CmTBag<T>& B)
  27. {
  28.   return (CmTBag<T>&) CmTHashTable<T>::operator=(B);
  29. }
  30.