What is the unsigned counterpart of ptrdiff_t
?
And similarly - what is the signed counterpart of size_t
?
What I'm trying to achieve is to have a unsigned type that I can use to store the positive values of ptrdiff_t
variable without worrying about large values - this seems to be size_t
.
Conversely - I would like to have a signed type that I can store the values of size_t
, again without worrying about large values.