Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Grab it
Dive deep into the intricacies of std::function in C++ with this comprehensive conference talk from Meeting C++ 2022. Explore the evolution of std::function from its Boost origins to its inclusion in the C++11 Standard Template Library, and learn about the upcoming std::move_only_function in C++23. Gain insights into function signatures, function pointers, and the versatility of std::function. Discover the caveats and limitations of these tools, and understand how to leverage std::invoke, introduced in C++17, to create custom derivatives. Examine various implementation approaches, including object-oriented and objective-ended methods, and analyze benchmarks and size considerations. Investigate advanced topics such as empty states, member functions, and multiple overloads. Conclude with a discussion on move-only functions and their implications for modern C++ programming.
std::function: A Deep Dive Behind the Curtain - Lecture