Save time, space and a little sanity with std::function_ref.

Ever found a codebase full of function pointers and thought, there must be a better way? You found that better way, introduced std::function and now have a horrific performance regression? Performance problems are perfectly normal, and std::function_ref is here to help.

std::function_ref is a vocabulary type that does not throw, does not allocate, improves compile-times and reduces memory footprint, all with a single abstraction.

In this session, we will go through how C++26's std::function_ref provides these benefits, what it is and when you should use it.

Image

David Ledger

I've worked mostly on embedded systems for a variety of industries. I've worked on test equipment, medical devices, and I am now working in the semiconductor industry. I enjoy designing ergonomic C++ libraries.

When

July 20-23, 2025

LinkedIn

CppNorth Group