Possible Duplicate:
When to use std::size_t?
I have a lot of constants in my code that are unsigned numbers, e.g. counters, frequency cutoffs, lengths, etc. I started using std::size_t
for all of these, instead of int
or unsigned int
.
Is that the right thing to do? I started it because the STL containers use it for their sizes, it's used for string position, etc.