Book

Template Metaprogramming with C++

Templates are a key feature of the C++ language that enable us to reuse source code, write more efficient code, and create generic libraries that can be used in many applications. Yet, they are often complex and hard to understand. This book will help you in understanding and writing templates from their simplest forms to the latest C++20 features.

Offered byPackt Logo

Difficulty Level

Intermediate

Completion Time

16h

Language

English

About Book

Who Is This Book For?

This book is for beginner-to-intermediate C++ developers who want to learn about template metaprogramming as well as advanced C++ developers looking to get up to speed with the new C++20 features related to templates and the the various idioms and patterns. Basic C++ coding experience is necessary to get started with this book.

Book content

chapters 16h total length

Introduction to Templates

Template Fundamentals

Variadic Templates

Advanced Template Concepts

Type Traits and Conditional Compilation

Concepts and Constraints

Patterns and Idioms

Ranges and Algorithms

The Ranges Library

Appendix

Related Resources

Access Ready-to-Use Books for Free!

Get instant access to a library of pre-built books—free trial, no credit card required. Start training your team in minutes!

No credit card required