Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
C++ Lambda Expressions - From C++98 to C++23
Rating: 4.7 out of 5(9 ratings)
128 students

C++ Lambda Expressions - From C++98 to C++23

Delve into the intricacies of C++ lambda expressions from C++98 to C++23
Created byUmar Lone
Last updated 9/2025
English

What you'll learn

  • Start with the fundamentals of function pointers, understanding their syntax, usage, and limitations in modern C++ code
  • Learn to create classes that act like functions by overloading operator()
  • Go beyond basic syntax to deeply understand how lambdas are a concise, powerful evolution of function objects
  • Implement features of lambda expressions from C++11 to C++23

Course content

7 sections43 lectures3h 15m total length
  • Slide Deck0:05
  • Source Code0:02

    Source code

Requirements

  • Basic knowledge of C++

Description

Unlock the full power of callable objects in C++ with this comprehensive journey from traditional C-style callbacks to the very latest C++23 lambda expressions. This course is designed for professional developers who want to move beyond syntax and gain a true, deep understanding of how to write expressive, modern, and highly efficient C++ code.

Start by building a solid foundation with function pointers, exploring the classic C-style approach to callbacks to understand the problems that modern C++ aimed to solve. From there, you will take a deep dive into function objects (functors), learning how to build powerful, stateful operations by creating classes that behave like functions.

Finally, you will progress to lambda expressions. We explore their complete evolution, from the fundamentals in C++11 to the advanced generic and templated features in C++14, C++17, and C++20, all the way to the cutting-edge additions in C++23. By understanding their origins in function pointers and functors, you will see exactly why lambdas are one of the most elegant and powerful features in modern C++.

Whether you're looking to modernize your codebase, master STL algorithms, or simply write cleaner code, this course will give you a complete and confident command of C++'s callable machinery.

Who this course is for:

  • Students learning C++
  • C++ programmers who want to understand lambda expressions in depth
  • C++ programmers who want to apply lambda expressions to various problems
  • Expert C++ programmers looking to explore new features of lambda expressions across various C++ standards