You did not declare an iterator. You declared a synonym fo the type vector<Uint>::const_iterator
So instead of this type you can use its synonym TIterator to declare iterators of this type everywhere in the program where this definition of the synonym is seen..