February 01, 1996
C++: Iterators
February 1996/Standard C/C++: Iterators/Table 4
Table 4: Bidirectional Iterator Additional Properties
| Expression |
Result Type |
Meaning |
Notes |
| --r |
X& |
pointer to previous element(s) |
++s = = r, for some s
&r = = &--r
r = = s implies --r = = --s |
| r-- |
convertible to const X& |
{ X tmp = r;
--r;
return tmp;} |
- |
| *r-- |
T& |
{T tmp = *r;
--r;
return tmp;} |
- |
Notes: X is iterator type, r and s have type X&
T is element type
all other properties same as for forward iterators
Previous Page |
1
|
2
|
3
|
4
|
5
|
6
Next Page