Saturday, July 10, 2010

Insert Iterators

For an insert iterator, iter, the following are true:
       1. *iter is a no-op that returns iter
       2. iter = value; calls one of push_back(),
                        push_front(), or insert().
       3. iter = value; behaves the same as
          *iter = value; but *iter = value; is 
          the preferred syntax.
Reference: The C++ Standard Library: A Tutorial and Reference by Nicolai M. Josuttis. Addison-Wesley, 1999, p. 272.

No comments:

Post a Comment