Template Metaprogramming with C++: Learn everything about C++ templates and unlock the power of template metaprogramming

Understand how to use modern C++ templates for writing maintainable, robust, and fast softwareKey Features: Grasp the...
Dhs. 442.09 AED
Dhs. 442.09 AED
SKU: 9781803243450
Product Type: Books
Please hurry! Only 429 left in stock
Author: Marius Bancila
Format: Paperback
Language: English
Subtotal: Dhs. 442.09
10 customers are viewing this product
Template Metaprogramming with C++: Learn everything about C++ templates and unlock the power of template metaprogramming by Bancila, Marius

Template Metaprogramming with C++: Learn everything about C++ templates and unlock the power of template metaprogramming

Dhs. 442.09

Template Metaprogramming with C++: Learn everything about C++ templates and unlock the power of template metaprogramming

Dhs. 442.09
Author: Marius Bancila
Format: Paperback
Language: English

Understand how to use modern C++ templates for writing maintainable, robust, and fast software


Key Features:

  • Grasp the fundamentals of and learn to write effective C++ templates
  • Get up to speed with the latest C++20 template features such as constraints and concepts
  • Explore different patterns and idioms to integrate templates in your program design


Book Description:

Learn how the metaprogramming technique enables you to create data structures and functions that allow computation to happen at compile time. With this book, you'll realize how templates help you avoid writing duplicate code and are key to creating generic libraries, such as the standard library or Boost, that can be used in a multitude of programs.

The introductory chapters of this book will give you insights into the fundamentals of templates and metaprogramming. You'll then move on to practice writing complex templates and exploring advanced concepts such as template recursion, template argument deduction, forwarding references, type traits, and conditional compilation. Along the way, you'll learn how to write variadic templates and how to provide requirements to the template arguments with C++20 constraints and concepts. Finally, you'll apply your knowledge of C++ metaprogramming templates to implement various metaprogramming patterns and techniques.

By the end of this book, you'll have learned how to write effective templates and implement metaprogramming in your everyday programming journey.


What You Will Learn:

  • 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


Who this book is 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.

Author: Marius Bancila
Publisher: Packt Publishing
Published: 08/19/2022
Pages: 480
Binding Type: Paperback
Weight: 1.80lbs
Size: 9.25h x 7.50w x 0.97d
ISBN: 9781803243450

This title is not returnable

Returns Policy

You may return most new, unopened items within 30 days of delivery for a full refund. We'll also pay the return shipping costs if the return is a result of our error (you received an incorrect or defective item, etc.).

You should expect to receive your refund within four weeks of giving your package to the return shipper, however, in many cases you will receive a refund more quickly. This time period includes the transit time for us to receive your return from the shipper (5 to 10 business days), the time it takes us to process your return once we receive it (3 to 5 business days), and the time it takes your bank to process our refund request (5 to 10 business days).

If you need to return an item, simply login to your account, view the order using the "Complete Orders" link under the My Account menu and click the Return Item(s) button. We'll notify you via e-mail of your refund once we've received and processed the returned item.

Shipping

We can ship to virtually any address in the world. Note that there are restrictions on some products, and some products cannot be shipped to international destinations.

When you place an order, we will estimate shipping and delivery dates for you based on the availability of your items and the shipping options you choose. Depending on the shipping provider you choose, shipping date estimates may appear on the shipping quotes page.

Please also note that the shipping rates for many items we sell are weight-based. The weight of any such item can be found on its detail page. To reflect the policies of the shipping companies we use, all weights will be rounded up to the next full pound.

Related Products

Recently Viewed Products