Introduction to Advanced Template Concepts

Discover the topics we'll cover in this advanced template concepts section.

In the previous section, we learned the core fundamentals of C++ templates. At this point, we should be able to write templates that are perhaps not very complex. However, there are many more details concerning templates, and this section is dedicated to these more advanced topics.

Overview of advanced template concepts

These include the following topics that we address next:

  • Understanding name binding and dependent names

  • Exploring template recursion

  • Understanding template argument deduction

  • Learning forwarding references and perfect forwarding

  • Using the decltype specifier and the std::declval type operator

  • Understanding friendship in templates

Get hands-on with 1200+ tech skills courses.