Possible Duplicate:
unsigned int vs. size_t
When I need to store the size of something (usually stuff allocated with new), I always store it in an unsigned int. Browsing through some code, however, I saw size_t used. According to this, it's hardly used for a lot.
- What is the point of
size_tin C++? - Why don't those few functions that use it just use an
unsigned intinstead? - How should it be used in new code?