3 ms·
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?
by OskarS 1y 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?
- forrestthewoods 1y agoI 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.
- Jtsummers 1y agoIt's as useful (or not) as you find this: https://cppreference.com/w/cpp/utility/functional/not_fn.html 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.
- forrestthewoods 1y agoSo not useful. Got it.