|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/modcpptemplates/
课程评论:没有评论
课程名称:深入现代 C++ 模板 概述:欢迎参加全面的现代 C++ 模板课程!本课程旨在深入了解从 C++11 到 C++20 中模板编程的变化与进展,帮助学习者掌握现代模板技术。课程内容包括两节详细课程,讲解 C++11 别名模板,提升复杂类型声明的简洁性和代码可读性。同时,探索外部模板,理解其在减少编译时间中的作用。 接下来,通过五节课程深入了解可变参数模板,讨论其语法、用法及应用,使学员掌握创建灵活和可重用代码的技能,能够处理任意数量的参数。随后,学习 C++14 和 C++17 中的新增特性,包括强大的折叠表达式和自动非类型特征,进一步优化模板编程。 在 C++20 部分,学习非类型模板参数(NTTP),了解其如何提升模板的灵活性。同时,在三节全面的课程中探索模板 lambda,掌握使用模板 lambda 来编写更简洁和富有表现力的代码。课程最后介绍了简化类型声明的自动缩写特性,进一步改善代码的清晰度。 本课程不仅涵盖现代 C++ 模板的理论方面,还提供了如何在实际场景中应用这些技术的实用指导。通过使用 C++ 标准库及其他 C++ 库的示例演示模板的应用,学习如何编写更高效、可维护和富有表现力的代码。完成本课程后,学员将全面理解现代 C++ 模板特性,并能够有效地将其应用于项目中。
Welcome to a comprehensive course on Modern C++ Templates! This course is designed to provide a deep understanding of the changes and advancements in C++ template programming from C++11 to C++20. The course equips learners with the knowledge and skills to master modern template techniques.Learn about C++11 alias templates in two detailed lessons, covering how to simplify complex type declarations and enhance code readability. Explore extern templates and understand their role in reducing compilation times.Delve into variadic templates across five lessons, discussing their syntax, usage, and applications. These lessons provide the tools to create flexible and reusable code that can handle an arbitrary number of arguments. Following this, learn about the changes introduced in C++14 and C++17, including the powerful fold expressions and the auto non-type feature, further streamlining template programming.In the C++20 segment, learn about non-type template parameters (NTTP) and how they improve template flexibility. Explore template lambdas in three comprehensive lessons, learning to use them for more concise and expressive code. The course concludes with an exploration of the abbreviated auto feature, simplifying type declarations and improving code clarity.This course not only covers the theoretical aspects of modern C++ templates but also provides practical guidance on how to apply these techniques in real-world scenarios. It demonstrates the usage of using templates with examples from the standard library & other C++ libraries. Utilized templates to write more efficient, maintainable, and expressive code. By the end of this course, gain a thorough understanding of modern C++ template features and be able to apply them effectively in projects.