To create an iterator of a vector, you have to use a vector specialization. In the following examples, I create two vector iterators: one for the specialization vector
#include #include using namespace std;int main(){ vector ::iterator vi_it; vector ::iterator vs_it;}
size=3>
If you need a generic iterator, use a template:
inline template vector ::iterator create_iterator( vector & v){ return vector::iterator();}
size=3>