FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
February 01, 1996

C++: Iterators

(Page 5 of 6)

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
RELATED ARTICLES
No Related Articles
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK