home *** CD-ROM | disk | FTP | other *** search
- // \EXAMPLES\EX17014B.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,EX17010B.H%EX17010B.H Stack.H base class stack
- // %F,15,EX17011B.H%EX17011B.H AStack.H derived array stack
- // %F,15,EX17011B.CPP%EX17011B.CPP AStack.CPP
- // %F,15,EX17012B.H%EX17012B.H LLStack.H derived linked list stack
- // %F,15,EX17012B.CPP%EX17012B.CPP LLStack.CPP
- // %F,15,EX17013B.H%EX17013B.H Exception.H
- // EX17014B.H this file -- Iterator.H
- // %F,15,EX1701B.CPP%EX1701B.CPP main() without exception handling
- // %F,15,EX1701.CPP%EX1701.CPP main() with exception handling
- //----------------------------------------------------------
- #ifndef INCL_EX17014
- #define INCL_EX17014
-
- template <class T> class Iterator
- {
- virtual T&
- operator()() = 0;
- };
-
- #endif
-