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
 


Functional Design (Addison-Wesley)

Author: Robert C. Martin
Publisher: Addison-Wesley
Date: September 2023
Pages: 384
ISBN: 978-0138176396
Print: 0138176396
Kindle: B0CGHQKGYG
Audience: General
Rating: 4.5
Reviewer: Kay Ewbank

This book sets out to explain the principles, patterns and practices of functional design, and why functional prog [ ... ]



Pro Database Migration to Azure

Author: Kevin Kline et al
Publisher: Apress
Pages: 352
ISBN: 978-1484282298
Print: 1484282299
Kindle: B0B924H21P
Audience: Managers & architects
Rating: 4
Reviewer: Ian Stirk

This book aims to give you a holistic approach to migrating on-premise databases to Azure, how does it fare?


More Reviews