home *** CD-ROM | disk | FTP | other *** search
- // \EXAMPLES\EX17014.H - Iterator.H
-
- //----------------------------------------------------------
- // Example of template container classes implenenting stacks.
- // This version includes exception handling and templates.
- //----------------------------------------------------------
- //----------------------------------------------------------
- // Exception handling is supported only by
- // the IBM C++ Set/2 compiler
- // Templates are not supported by
- // the Microcoft Visual C++ compiler
- // Two versions of this program are included:
- // EX1701I.EXE - for IBM CSet II
- // EX1701B.EXE - for Borland Turbo C++
- //----------------------------------------------------------
- // Files in this example:
- // %F,15,EX17010.H%EX17010.H Stack.H base class stack
- // %F,15,EX17011.H%EX17011.H AStack.H derived array stack
- // %F,15,EX17011.CPP%EX17011.CPP AStack.CPP
- // %F,15,EX17012.H%EX17012.H LLStack.H derived linked list stack
- // %F,15,EX17012.CPP%EX17012.CPP LLStack.CPP
- // %F,15,EX17013.H%EX17013.H Exception.H
- // EX17014.H this file -- Iterator.H iterator class
- // %F,15,EX1701.CPP%EX1701.CPP main() with exception handling
- // %F,15,EX1701B.CPP%EX1701B.CPP main() without exception handling
- //----------------------------------------------------------
- #ifndef INCL_EX17014
- #define INCL_EX17014
-
- template <class T> class Iterator
- {
- virtual T&
- operator()() = 0;
- };
-
- #endif
-