Re:Rob Pike's Rules of Programming (1989)
by avasthe on Thursday August 13, 2020 @12:43PM
(#24145314)
You don't know when something comes to hot path.
if (std::set(itr.begin(), itr.end()).count(element)) { _____ }
is it tempting for someone than something likestd::find(itr.begin(), itr.end(), element) != itr.end())
?? I don't know. That said, C++ STL quite undiscoverable.
Depending on where it was done (fast path or not), this could be just fine.