Packt

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

通过 Coursera Plus 提高技能,仅需 239 美元/年(原价 399 美元)。立即节省

Packt

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

包含在 Coursera Plus

深入了解一个主题并学习基础知识。
中级 等级

推荐体验

6 小时 完成
灵活的计划
自行安排学习进度
深入了解一个主题并学习基础知识。
中级 等级

推荐体验

6 小时 完成
灵活的计划
自行安排学习进度

您将学到什么

  • 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.

要了解的详细信息

可分享的证书

添加到您的领英档案

最近已更新!

March 2026

作业

8 项作业

授课语言:英语(English)

了解顶级公司的员工如何掌握热门技能

Petrobras, TATA, Danone, Capgemini, P&G 和 L'Oreal 的徽标

该课程共有7个模块

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.

涵盖的内容

1个视频1篇阅读材料

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.

涵盖的内容

5个视频1个作业

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.

涵盖的内容

5个视频1个作业

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.

涵盖的内容

13个视频1个作业

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.

涵盖的内容

4个视频1个作业

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.

涵盖的内容

7个视频1个作业

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.

涵盖的内容

6个视频3个作业

位教师

Packt - Course Instructors
Packt
1,611 门课程466,053 名学生

提供方

Packt

从 Software Development 浏览更多内容

人们为什么选择 Coursera 来帮助自己实现职业发展

Felipe M.

自 2018开始学习的学生
''能够按照自己的速度和节奏学习课程是一次很棒的经历。只要符合自己的时间表和心情,我就可以学习。'

Jennifer J.

自 2020开始学习的学生
''我直接将从课程中学到的概念和技能应用到一个令人兴奋的新工作项目中。'

Larry W.

自 2021开始学习的学生
''如果我的大学不提供我需要的主题课程,Coursera 便是最好的去处之一。'

Chaitanya A.

''学习不仅仅是在工作中做的更好:它远不止于此。Coursera 让我无限制地学习。'
Coursera Plus

通过 Coursera Plus 开启新生涯

无限制访问 10,000+ 世界一流的课程、实践项目和就业就绪证书课程 - 所有这些都包含在您的订阅中

通过在线学位推动您的职业生涯

获取世界一流大学的学位 - 100% 在线

加入超过 3400 家选择 Coursera for Business 的全球公司

提升员工的技能,使其在数字经济中脱颖而出

常见问题