home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 31 / CDASC_31_1996_juillet_aout.iso / vrac / cuj0796.zip / SAKS.ZIP / TABLE1.O < prev    next >
Text File  |  1996-04-22  |  933b  |  34 lines

  1. Table 1 - deque<T> member functions used in the scanner
  2. implementation in Listing 5.
  3.  
  4. Note: These function declarations are not exactly as the
  5. appear in the STL.  I have simplified them for presentation
  6. purposes.
  7.  
  8. bool empty()
  9. - returns true if the deque contains no elements; otherwise
  10. returns false.
  11.  
  12. iterator begin()
  13. - returns an iterator that refers to the first element in
  14. the deque.
  15.  
  16. iterator end()
  17. - returns an iterator with the same value that an iterator
  18. has after it has been incremented beyond the end of the
  19. deque.
  20.  
  21. T &front()
  22. - returns the element from the front of the deque; the
  23. behavior is undefined if the deque is empty.
  24.  
  25. void pop_front()
  26. - removes the element from the front of the deque; the
  27. behavior is undefined if the deque is empty.
  28.  
  29. void push_back(const T &e)
  30. - adds element e to the end of the deque.
  31.  
  32. void push_front(const T &e)
  33. - adds element e to the front of the deque.
  34.