Home>Courses>Generic Programming Templates in C++

Generic Programming Templates in C++

Explore the power of C++ templates, from function and class basics to advanced features like instantiation and concepts, enhancing code flexibility, reusability, and abstraction without performance loss.

Advanced

91 Lessons

8h

Certificate of Completion

Explore the power of C++ templates, from function and class basics to advanced features like instantiation and concepts, enhancing code flexibility, reusability, and abstraction without performance loss.
AI-POWERED

Explanations

AI-POWERED

Explanations

This course includes

121 Playgrounds
Course Overview
Course Content
Apply Your Skills
Recommendations

Course Overview

Templates are one of the many powerful features of Modern C++ programming. And with each new C++ standard, they become more important. Templates provide an efficient way to make your code more flexible and reusable, this way you can avoid repeating code that would otherwise be identical except for different types. Templates also give you the ability to provide abstraction without a performance penalty. However, templates can be difficult to apply, can be counterintuitive, and have tricky error messages. ...Show More
Templates are one of the many powerful features of Modern C++ programming. And with each new C++ standard, they become more important. Templates provide an efficient way to make your code more flexible and reusable, this way you can avoid repeating code ...Show More

Course Content

1.

Introduction

2 Lessons

Get familiar with C++ templates, covering fundamentals and advanced programming concepts for better abstraction.

3.

Details

18 Lessons

Examine C++ template instantiation, variadic templates, fold expressions, class template friendship, and dependent names usage.

6.

Future

7 Lessons

See how it works to enhance C++ generic programming with concepts, constraints, and type safety.

7.

Conclusion

2 Lessons

Master the significance and future enhancements of templates in C++, and learn about the author.

Course Author

Trusted by 2.5 million developers working at companies

Hands-on Learning Powered by AI

See how Educative uses AI to make your learning more immersive than ever before.

Instant Code Feedback

Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.

AI-Powered Mock Interviews

Adaptive Learning

Explain with AI

AI Code Mentor

Free Resources

FOR TEAMS

Interested in this course for your business or team?

Unlock this course (and 1,000+ more) for your entire org with DevPath