News for hackers. Stuff that matters.
Re:In C++, is empty() faster than comparing the size with zero? by ape4 on Thursday October 28, 2021 @04:16PM (#29031322)
Interesting, a good case for another std::list<> like std::non_counting_list<>
Re:In C++, is empty() faster than comparing the size with zero? by ycombobreaker on Thursday October 28, 2021 @08:05PM (#29033669)
Reminds me of Michael Bolton from Office Space, "Why should I change, he's the one who sucks!"

std::list WAS noncounting. introducing std::counting_list was an option. I didn't follow this decision so I don't know why they opted to break the behavior (performance expectations).