// File: OutOfBounds.h // // #ifndef OUTOFBOUNDS_H #define OUTOFBOUNDS_H #include #include using namespace std ; // Used to throw an exception class OutOfBounds : public out_of_range { public: OutOfBounds() ; OutOfBounds(const string& str) ; ~OutOfBounds() throw() ; // guarantee that destructor won't throw unsigned int bad_index ; unsigned int max_index ; } ; #endif