Template Metaprogramming with C++ (Packt)
Wednesday, 14 September 2022

This book shows how to use the metaprogramming technique to create data structures and functions that allow computation to happen at compile time. Marius Bancila shows how to use templates to avoid writing duplicate code, and how these are key to creating generic libraries, such as the standard library or Boost, that can be used in multiple programs. 

<ASIN:‎ 1803243457>

Bancila looks at writing complex templates and exploring advanced concepts such as template recursion, template argument deduction, forwarding references, type traits, and conditional compilation. He also covers writing variadic templates and providing requirements to the template arguments with C++20 constraints and concepts.

Author: Marius Bancila
Publisher: Packt
Date: August 2022
Pages: 480
ISBN: 978-1803243450
Print: 1803243457
Kindle: B09ZHZFTKV
Audience: Developers interested in C++
Level: Intermediate
Category: C/C++

Topics covered: 

  • Understand the syntax for all types of templates
  • Discover how specialization and instantiation works
  • Get to grips with template argument deduction and forwarding references
  • Write variadic templates with ease
  • Become familiar with type traits and conditional compilation
  • Restrict template arguments in C++20 with constraints and concepts
  • Implement patterns such as CRTP, mixins, and tag dispatching

For recommendations of C and C++ books see Top Choice C and C++ Books in our Programmer's Bookshelf section.

 

For more Book Watch just click.

Book Watch is I Programmer's listing of new books and is compiled using publishers' publicity material. It is not to be read as a review where we provide an independent assessment. Some, but by no means all, of the books in Book Watch are eventually reviewed.

To have new titles included in Book Watch contact  BookWatch@i-programmer.info

Follow @bookwatchiprog on Twitter or subscribe to I Programmer's Books RSS feed for each day's new addition to Book Watch and for new reviews.

 

 

Banner
 


Professional C++, 5th Ed (Wrox)

Author: Marc Gregoire
Publisher: Wrox
Date: February 2021
Pages: 1312
ISBN: 978-1119695400
Print: 1119695406
Audience: C++ developers
Rating: 4
Reviewer: Mike James


Professional C++? Who wants to be unprofessional?



Wild West To Agile (Addison-Wesley)

Author: Jim Highsmith
Publisher: Addison-Wesley
Pages: 304
ISBN: 978-0137961009
Print: 0137961006
Kindle: B0BXWP88KP
Audience: Adherents of Agile methodology
Rating: 4.5
Reviewer: Alex Denham

The subtitle of this book is Adventures in Software Development Evolution and Revolution and it is personal reminin [ ... ]


More Reviews