Honestly, I canβt come up with a case where I need std :: function, and thatβs why. If I refuse function pointers at all, I probably work at a very low level. Perhaps the reason is that C ++ type inheritance turned out to be too strict, so I am developing my own polymorphism. Alternatively, I can work with a small built-in controller where I really get rid of bytes. In any case, I will rely on myself, not on the compiler, to remember what types I have, etc. I would mostly beat with metal and would like the metal to behave like metal, and not like a lift from Sirius Cybernetics,
The only time I probably want the overhead of std :: function is when I try to do something functional, like closing juggling, but if I want to, Iβm unlikely to use C ++ on everything.
Adrian may
source share