Hacker News new | ask | show | jobs
by OskarS 270 days ago
You write C++ every day, and you didn’t understand the is_descendant_of/is_ancestor_of example? Or how you can use it to reverse a relation like std::less?
1 comments

I don’t understand why I should care about this. It doesn’t appear to solve real problems. The examples are all dumb toys and simply writing a wrapper by hand is perfectly fine and easier to read.
It's as useful (or not) as you find this:

https://cppreference.com/w/cpp/utility/functional/not_fn.htm...

If you don't see any value in that, you wouldn't see any value in the similar `flip` function or other combinators.

So not useful. Got it.