From Jason Turner
Watch on YouTube

Summary

This episode explores `std::invoke`, one of Jason's favorite new features in C++17. The feature provides a uniform interface for calling any callable entity, including free functions, member functions, and even accessing member data. Jason demonstrates how `std::invoke` simplifies complex syntax related to function pointers and member function pointers, showing its practical advantages especially in template programming where calling different types of callables would otherwise require multiple overloads.

Resources

Tags