iterstack

iterstack - void push(const bigint&opnd bigint pop...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// $Id: iterstack.h,v 1.1 2010-01-21 15:08:53-08 - - $ / #ifndef __ITERSTACK_H__ #define __ITERSTACK_H__ # // // Iterable stack, from the top to the bottom. // #include <deque> # using namespace std; u #include "bigint.h" # typedef deque<bigint>::const_iterator stackiterator; t class iterstack { public: typedef deque<bigint>::const_iterator const_iterator;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: void push (const bigint &opnd); bigint pop(); bigint peek() const; void clear(); bool empty() const; const_iterator begin() const; const_iterator end() const; private: deque<bigint> stack; }; } RCSH(__iterstack_h__, "$Id: iterstack.h,v 1.1 2010-01-21 15:08:53-08 - - $") " #endif...
View Full Document

This note was uploaded on 01/26/2010 for the course CMPS 109 taught by Professor Bailey,d during the Spring '08 term at UCSC.

Ask a homework question - tutors are online