std.random
Frank Benoit
benoit__ at __tionex.de
Wed Apr 12 01:00:25 PDT 2006
> Forgive me for asking such a naive (I feel I should know this already) question
> and taking this off-topic, but what is the type size_t? I've seen it used (and
> also ptrdiff_t I believe), but I don't know what they're for or how to use them?
> -Kramer
size_t is an _unsigned_ value which can hold a size.
ptrdiff_t is a _signed_ value which can hold the offset between two
pointers.
These aliases are used to increase portability.
I know them mainly from C/C++.
More information about the Digitalmars-d-learn
mailing list