News for hackers. Stuff that matters.
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?
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.
Re:In C++, is empty() faster than comparing the size with zero? by nawgz on Thursday October 28, 2021 @01:59PM (#29029053)
signed integer overflow for positive N