Tags: #implement #function_view
http://foonathan.net/blog/2017/01/20/function-ref-implementation.html
http://foonathan.net/blog/2017/01/20/function-ref-implementation.html
foonathan.net
Implementing function_view is harder than you might think
function_view is a simple type that can refer to any callable without overhead. However, the trivial implementation has issues with temporaries. In this post, we'll implement one that does not have these issues, while still keeping the same convenience. But…