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 2 of 6)

February 1996/Standard C/C++: Iterators/Table 1

Table 1: Output Iterator Properties

Expression Result Type Meaning Notes
X(a) X constructs a copy of a destructor is visible
*X(a) has same effect as *a = t
X u(a)
X u = a
X& u is a copy of a -
r = a X& assigns a to r result: *r = t has same effect as *a = t
*a = t void store new element in sequence -
++r X& point to next element &r = = &++r
r++ convertible to const X&
{X tmp = r;
++r;
return tmp;}
-
*r++ = t void - -


Notes: X is iterator type, a has type X, r has type X&
is element type, t has type T

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