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

ACCU Conference via YouTube

Overview

Explore higher-order functions and function_ref in C++ through this comprehensive ACCU 2019 conference talk. Delve into practical examples of how higher-order functions can enhance code quality and developer productivity in production environments. Learn about the proposed function_ref abstraction for C++20, comparing it to other techniques for implementing higher-order functions. Discover how this lightweight wrapper for Callable objects can improve compiler optimization and inlining. Gain insights from Vittorio Romeo, a C++ enthusiast and active community member, as he covers topics such as lambda expressions, std::function, functional programming patterns, and their applications in modern C++ development. Understand the benefits of treating functions as first-class citizens and how these concepts can increase API flexibility and safety while reducing code repetition.

Syllabus

Introduction
YouTube channel
Open source projects
Outline
Disclaimer
Assumptions
Higherorder functions
Signal
lambda expressions
arrays remove
variant
use cases
avoid repetition
example
local lambda
execution policy
unit testing
abstraction
structure
for separated
print
consumeif
Synchronicity
Test drivers
Higherorder functions vs other obstructions
Threadsafe access wrapper
Synchronized instance
Implementation
Benchmarking
Iterators
Recap
Second half
Function pointers
Template parameters
City functions
Functionref
Why use functionref
Interface
Examples

Taught by

ACCU Conference

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.