Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 49,291 posts.

Any topic
Any year
43156

`std::flip`

std::flip is a little-known utility from the C++ standard library header <functional>: it is a higher-order function that accepts a Callable and returns an equivalent Callable with the order of its parameters reversed (or “flipped”).