Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore higher order functions in C++ through this comprehensive conference talk. Learn simple techniques for writing functions that accept or return other functions, elevating code abstraction and readability while reducing duplication. Discover how to maintain performance while implementing these advanced concepts. Examine practical examples using Compiler Explorer, including IP address handling, predicate composition, and state management. Investigate the benefits of higher order functions in arranging code, handling lambdas, and solving common programming challenges. Delve into function categories, boost libraries, and composition naming conventions. Gain valuable insights on improving C++ code quality and efficiency through the effective use of higher order functions.
Syllabus
Introduction
Examples
Compiler Explorer
Expand
IP address
IP interface
IP matress predicate
IP matress composition
IP interface composition
Insanity
Folds
SelectState
IfThen
Action
SetState
OptionalT
Lookup function
Lookup use case
Overloads
Address
Transform
clang
the problem
why bother
arrange your code
throw a lambda
read a lambda
to be solution
macro lift
compilation error
function categories
cons
boost
takeaway message
composition names
expected
Taught by
NDC Conferences