Re:In C++, is empty() faster than comparing the size with zero?
by caf on Thursday October 28, 2021 @07:08PM
(#29033227)
This is correct. In the motivating example, it would have to scan the entire list of pointers to see whether it finds a NULL link before it overflows the size counter or not.
[ Parent
| on HN ]
There are no comments on this comment yet.