stdx::ptr_iterator_tag Struct Reference

#include <ptr_vector.h>

Inherited by stdx::const_ptr_vec_iter< T >, and stdx::ptr_vec_iter< T >.

Inheritance diagram for stdx::ptr_iterator_tag:

Inheritance graph
[legend]
List of all members.

Detailed Description

ptr_iterator_tag

ptr_iterator_tag is a marker interface to be inherited by pointer iterators (see ptr_vec_iter and const_ptr_vec_iter). ptr_iterator_tag lets you distinguish between Standard iterators and pointer iterators in cases where you need this distinction. The primary purpose of ptr_iterator_tag is to facilitate the implementation of algorithms that take both Standard iterators and pointer iterators as arguments but handle them differently. E.g. a sort algorithms can be created that swap objects if Standard iterators are passed and pointers to objects if pointer iterators are passed (see accompanying testcases for an example).


The documentation for this struct was generated from the following file:
Generated on Wed Jan 17 14:53:50 2007 for iTunesIslands by  doxygen 1.5.1-p1