Packt
Modern C++ Templates In Depth
Packt

Modern C++ Templates In Depth

包含在 Coursera Plus

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

推荐体验

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

推荐体验

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

您将学到什么

  • Understand the core principles of function and class templates in C++.

  • Master advanced template techniques like specialization and instantiation.

  • Implement variadic templates and apply them in real-world scenarios.

  • Explore template changes across modern C++ standards (C++11/14/17/20).

要了解的详细信息

可分享的证书

添加到您的领英档案

最近已更新!

October 2025

作业

9 项作业

授课语言:英语(English)

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

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

该课程共有8个模块

In this module, we will introduce you to the course's structure, its primary goals, and why templates are a vital part of modern C++ programming. You'll gain a solid understanding of template syntax and learn the core concepts that will form the foundation for the rest of the course.

涵盖的内容

4个视频1篇阅读材料

In this module, we will dive into the fundamentals of function templates, covering how they are created, instantiated, and specialized. You'll explore various techniques such as overloading, argument conversions, and optimization strategies like extern templates to enhance compilation.

涵盖的内容

18个视频1个作业

In this module, we will focus on class templates, teaching you how to create and instantiate them efficiently. We will also explore advanced techniques like explicit specialization and partial specialization to handle specific scenarios in your template programming.

涵盖的内容

16个视频1个作业

In this module, we will explain the role of different parameter types in templates, emphasizing forwarding references to improve the versatility of your code. You will learn how these concepts contribute to more efficient and reusable template functions.

涵盖的内容

3个视频1个作业

In this module, we will explore the most significant template-related changes in C++11, such as variadic templates, type aliases, and the right angle bracket syntax. You will learn how these innovations help streamline template programming and reduce code complexity.

涵盖的内容

10个视频1个作业

In this module, we will focus on the advancements in template programming from C++14 and C++17. Key topics include the introduction of variable templates, generic lambdas, and more efficient ways to handle variadic templates using fold expressions and compile-time conditions.

涵盖的内容

4个视频1个作业

In this module, we will cover the template changes in C++20, focusing on enhancements like non-type template parameters, template parameters in lambdas, and the new abbreviated auto syntax. You will learn how these features can optimize your template-based code.

涵盖的内容

4个视频1个作业

In this module, we will guide you through a hands-on project where you'll apply the techniques learned throughout the course. You'll implement core methods, test your template code, and modernize the project using advanced C++ features to maximize efficiency and maintainability.

涵盖的内容

8个视频3个作业

位教师

Packt - Course Instructors
Packt
1,186 门课程292,430 名学生

提供方

Packt

人们为什么选择 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 的全球公司

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

常见问题