140 likes | 279 Views
STL Iterator Syntax and Semantics. Pointers and integers support Gamma et al. iterationfor (int * p = A; p ? A < MAX; p) { cout << *p << endl; } for (unsigned int i = 0; i < MAX; i) { cout << A[i] << endl; } Pointers (but not integers) are also STL iteratorsHelped by traits based on ty
E N D