The book I am currently reading (Accelerated C++) talks about using size_type
instead of an integerCode:vector<int>::size_type size = vec.size();
to hold the size of a string or vector. This is the first time I have seen anything on this and have always used just an integer. I was wondering how important it is to use the size_type over just an integer?Code:int size = vec.size();