Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Rob Pike's Rules of Programming (1989). Parent comment
if (std::set(itr.begin(), itr.end()).count(element)) { _____ }
std::find(itr.begin(), itr.end(), element) != itr.end())
?? I don't know. That said, C++ STL quite undiscoverable.
That's the point of the first advice though...
std::find(itr.begin(), itr.end(), element) != itr.end())
?? I don't know. That said, C++ STL quite undiscoverable.