[C++] size_t vs. size_type vs. unsiged int

What's the difference?
Why use one over the other?

Such as why would I do:
for(vector<int>::size_type i=0; i<vInt.size(); ++i)

When I could just do:
1
2
3
for(int i=0; i<vInt.size(); ++i)
//OR
for(unsiged int i=0; i<vInt.size(); ++i)


Thanks!
So
the STL is reserving the right to make size_type any type they like.
is why?
So that the same code compiles and runs properly on other/future hardware.
Thanks to both of you.
Topic archived. No new replies allowed.