I notice that modern C and C++ code seems to use size_t
instead of int
/unsigned int
pretty much everywhere - from parameters for C string functions to the STL. I am curious as to the reason for this and the benefits it brings.
转载于:https://stackoverflow.com/questions/131803/unsigned-int-vs-size-t