C++26: More function wrappers
Summary
Explains the limitations of std::function, introduces std::copyable_function and std::function_ref in C++26, and provides examples illustrating non-const vs const operator() semantics and non-owning references. The post argues that C++26 completes the type-erased wrapper ecosystem and guides when to use each wrapper.