3 ms·
why would it? More so I do not see why ptrdiff_t instead of size_t.
by Glavnokoman 5y ago
why would it? More so I do not see why ptrdiff_t instead of size_t.
- bonzini 5y agoProbably so that implementations can use the spare bit for a flag, such as "is anyone waiting on this".
- gjulianm 5y agoptrdiff_t is signed, while size_t is unsigned. A size is only positive, a difference might be positive or negative, so you avoid overflow problems.
- Glavnokoman 5y agowhich difference?