MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1tic32u/c26_more_function_wrappers/omx0yqv/?context=3
r/cpp • u/pavel_v • May 20 '26
37 comments sorted by
View all comments
Show parent comment
2
A function is a reference to some code, it has to be a reference type. std::function is a wrapper for a bunch of data + code, but primarily it's the code, so I would call it a (crappy) reference type
View all comments
Show parent comment
2
u/mt-wizard May 20 '26
A function is a reference to some code, it has to be a reference type. std::function is a wrapper for a bunch of data + code, but primarily it's the code, so I would call it a (crappy) reference type