Packt

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

Grow your skills with Coursera Plus for $239/year (usually $399). Save now.

Packt

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

Included with Coursera Plus

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

6 hours to complete
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

6 hours to complete
Flexible schedule
Learn at your own pace

What you'll learn

  • Learn how to effectively use function pointers and function objects in real-world scenarios.

  • Master the features and syntax of C++ lambda expressions from C++11 to C++23.

  • Understand the differences between capturing by value, reference, and constants in lambdas.

  • Apply advanced lambda techniques such as recursion, static lambdas, and optimizations for better performance.

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

March 2026

Assessments

8 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

There are 7 modules in this course

In this module, we will introduce the course structure, roadmap, and objectives. You will gain an understanding of how mastering C++ callable entities like function pointers, function objects, and lambdas will enhance your coding proficiency. This section will set the foundation for exploring the power of C++ features from C++98 to C++23.

What's included

1 video1 reading

In this module, we will cover the fundamentals of function pointers, from basic syntax to advanced examples. You’ll learn how to use function pointers for flexible, dynamic execution and understand callbacks and pointers to member functions in the context of C++ programming. This section will equip you with essential skills for implementing responsive, event-driven programs.

What's included

5 videos1 assignment

In this module, we will explore function objects (also known as functors), comparing them with function pointers. We will show you how to craft efficient, reusable callable entities and teach techniques to refine these objects for improved performance. By the end of this section, you'll be equipped to leverage the full potential of function objects.

What's included

5 videos1 assignment

In this module, we will dive deep into the core features of C++11 lambdas. You’ll learn how to use capture lists, different capture methods (by reference, by value), and lambda conversions. With examples of Immediately Invoked Function Expressions (IIFE), you will be able to use lambdas effectively to create clean and compact code.

What's included

13 videos1 assignment

In this module, we will explore how C++14 and C++17 enhanced lambda expressions. You’ll learn about generic lambdas, generalized lambda captures, and constexpr lambdas for performing compile-time computations. These advanced features will take your lambda skills to the next level, making your code more flexible and efficient.

What's included

4 videos1 assignment

In this module, we will focus on the advancements introduced in C++20, including implicit capture of this in lambdas, template type parameters, and constraints with concepts. These new features allow you to write more elegant and type-safe lambda expressions, improving both the performance and maintainability of your code.

What's included

7 videos1 assignment

In this module, we will explore the cutting-edge lambda features introduced in C++23. You will learn how to implement static lambdas, apply recursive lambda patterns, and add attributes to lambdas for optimization. This section will help you harness the latest tools to write more powerful and efficient lambdas.

What's included

6 videos3 assignments

Instructor

Packt - Course Instructors
Packt
1,566 Courses 441,543 learners

Offered by

Packt

Why people choose Coursera for their career

Felipe M.

Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."

Larry W.

Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."

Chaitanya A.

"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."
Coursera Plus

Open new doors with Coursera Plus

Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription

Advance your career with an online degree

Earn a degree from world-class universities - 100% online

Join over 3,400 global companies that choose Coursera for Business

Upskill your employees to excel in the digital economy

Frequently asked questions