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
 


React Programming

Author: Loren Klingman and Ashley Parker
Publisher: Big Nerd Ranch Guides
Date: April 2023
ISBN:978-0137901760
Print:0137901763
Kindle:B0C4V69S8Z
Audience: Front end devs
Rating: 4
Reviewer: Ian Elliot
React is difficult to master, so a book can really help.



Testing JavaScript Applications

Author: Lucas da Costa
Publisher: Manning
Date: April 2021
Pages: 512
ISBN: 978-1617297915
Print: 1617297917
Audience: JavaScript developers
Level: Intermediate
Rating: 5
Reviewer: Ian Elliot
Testing the most web's fundamental language is clearly important...


More Reviews