Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Higher-Order Functions and Function Ref

CppNow via YouTube

Overview

Explore higher-order functions and the proposed `function_ref` abstraction in C++20 through this comprehensive conference talk. Dive into practical examples of how higher-order functions can enhance code quality and developer productivity in production environments. Learn about the implementation and specification of `function_ref`, a lightweight wrapper for callable objects that facilitates compiler optimization and inlining. Discover use cases for higher-order functions, including parallel algorithms, synchronicity, AI guards, and benchmarking. Compare `function_ref` to other techniques for implementing higher-order functions, and understand its potential future extensions. Gain insights into template parameters, polymorphism, and construction related to `function_ref`. Presented by Vittorio Romeo, an experienced Software Engineer at Bloomberg L.P., this talk offers valuable knowledge for C++ developers looking to leverage functional programming patterns in their work.

Syllabus

Introduction
Outline
Highorder functions
Use cases
Parallel algorithms
Synchronicity
AI guards and higherorder functions
benchmarking a function
performance benefits
recap
template parameters
Why use functionref
Functionref synopsis
Use cases examples
Polymorphism
Sweeping
Construction

Taught by

CppNow

Reviews

Start your review of Higher-Order Functions and Function Ref

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.