#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:
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).