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