Top posts

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

Any topic
2025
3851

`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”).