Thursday, February 13, 2014

Header Files for Iterators

Header Files for Iterators


All containers define their own iterator types, so you don't need a special header file for using iterators of containers. However, there are several definitions for special iterators, such as reverse iterators. These are introduced by the <iterator> header file, although you don't need to include this file in your program often. It is needed by containers to define their reverse iterator types and thus it is included by them.

No comments:

Post a Comment