| ▲ | hyperbolablabla 6 hours ago | |
Stewart Lynch in his 10x VODs mentions his custom Function abstraction in C++. It's super clean and explicit, avoiding `auto` requirement of C++ lambdas. It's use looks something akin to:
I've never implemented it myself, as I don't use C++ features all too much, but as a pet project I'd like to someday. I wonder how something like that compares! | ||
| ▲ | spacechild1 4 hours ago | parent [-] | |
Isn't this basically the same as passing the function to std::bind_front and storing it in a std::function or std::function_ref? | ||