Sunday, July 25, 2010

The advance() Function Template

Given an STL container with 1 element,and an iterator, i, pointing to that element; then advance(i, 2) is undefined.

Reference: The C++ Standard Library: A Tutorial and Reference by Nicolai M. Josuttis, Addison-Wesley, 1999, p. 259.

No comments:

Post a Comment