home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 31
/
CDASC_31_1996_juillet_aout.iso
/
vrac
/
cuj0796.zip
/
SAKS.ZIP
/
TABLE2.O
< prev
Wrap
Text File
|
1996-04-22
|
718b
|
23 lines
Table 2 - deque<T>::iterator member functions used in the
scanner implementation in Listing 5.
Note: These function declarations are not exactly as the
appear in the STL. I have simplified them for presentation
purposes.
bool operator!=(iterator &i);
- returns true if the iterator has the same value as
iterator i; otherwise returns false.
T &operator*();
- returns the element referenced by the iterator.
iterator& operator++(); // prefix increment
- returns the iterator after advancing it to the next
element in the deque.
iterator operator++(int); // postfix increment
- advanced the iterator to the next element in the deque;
returns the value of the iterator prior to incrementing.