Re:In C++, is empty() faster than comparing the size with zero?
by carnitine on Thursday October 28, 2021 @01:56PM
(#29028997)
What’s the UB?
[ Parent
| on HN ]
Re:In C++, is empty() faster than comparing the size with zero?
by whimsicalism on Thursday October 28, 2021 @01:58PM
(#29029036)
Calling it on any positive int causes signed integer overflow, which is UB.