diff --git a/iterator_adaptors.htm b/iterator_adaptors.htm index 7db55cc..4620bbc 100644 --- a/iterator_adaptors.htm +++ b/iterator_adaptors.htm @@ -307,12 +307,16 @@ typedef iterator_adaptor<foo_iterator, foo_policies,
Operation + | Expression | Effects @@ -321,7 +325,7 @@ typedef iterator_adaptor<foo_iterator, foo_policies, | Required for Iterator Categories | ||
---|---|---|---|---|---|
initialize + | p.initialize(b) | optionally modify base iterator during iterator construction @@ -333,79 +337,66 @@ typedef iterator_adaptor<foo_iterator, foo_policies, "http://www.sgi.com/tech/stl/ForwardIterator.html">Forward/ Bidirectional/ - Random - Access + Random Access | |||
dereference + | p.dereference(x) | returns an element of the iterator's reference type - | *p, p[n] + | *x, x[d] | |
equal + | p.equal(x, y) | tests the iterator for equality - | p1 == p2, p1 != p2 + | i1 == i2, i1 != i2 | |
increment + | p.increment(x) | increments the iterator | ++p, p++ | ||
decrement + | p.decrement(x) | decrements the iterator - | --p, p-- + | --x, x-- | Bidirectional/ - Random - Access + Random Access |
less - - | imposes a Strict Weak - Ordering relation on iterators - - | - p1 < p2, - p1 <= p2, - p1 > p2, - p1 >= p2 - - | Random - Access - - | ||
distance + | p.distance(x, y) | measures the distance between iterators - | p1 - p2 + | y - x, x < y + + | Random + Access |
advance + | p.advance(x, n) | adds an integer offset to iterators |
-p + x,
-x + p,
-p += x,
-p - x,
-p -= x
+x + d,
+d + x,
+
+ +x += d, +x - d, +x -= d |