Template Metaprogramming with C++

Template Metaprogramming with C++

Marius Bancila

70,68 €
IVA incluido
Disponible
Editorial:
Packt Publishing
Año de edición:
2022
Materia
Análisis y diseño de sistemas
ISBN:
9781803243450
70,68 €
IVA incluido
Disponible
Añadir a favoritos

Understand how to use modern C++ templates for writing maintainable, robust, and fast softwareKey Features:Grasp the fundamentals of and learn to write effective C++ templatesGet up to speed with the latest C++20 template features such as constraints and conceptsExplore different patterns and idioms to integrate templates in your program designBook 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 templatesDiscover how specialization and instantiation worksGet to grips with template argument deduction and forwarding referencesWrite variadic templates with easeBecome familiar with type traits and conditional compilationRestrict template arguments in C++20 with constraints and conceptsImplement patterns such as CRTP, mixins, and tag dispatchingWho 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.

Artículos relacionados

  • Dominando PowerShell
    Christopher Ford
    'Dominando PowerShell: Una Guía Paso a Paso' es una obra completa que te lleva de la mano a través del mundo de PowerShell, desde los conceptos básicos hasta las técnicas avanzadas de automatización y administración de sistemas. Con un enfoque práctico y accesible, este libro te brinda las herramientas necesarias para dominar PowerShell y aprovechar al máximo su potencial en tu...
    Disponible

    10,88 €

  • The Clausal Theory of Types
    D. A. Wolfram / DAWolfram
    ...
    Disponible

    42,43 €

  • Fundamentals of Oop and Data Structures in Java
    Lewis Pinson / Richard Wiener
    ...
    Disponible

    136,85 €

  • Advanced Object-Oriented Analysis and Design Using UML
    James J. Odell / James JOdell
    ...
    Disponible

    99,80 €

  • The Elements of Java Style
    Alan Vermeulen / Greg Bumgardner / Scott W. Ambler / Scott WAmbler
    ...
    Disponible

    23,94 €

  • Object-Oriented COBOL
    Edmund C. Arranga / Edmund CArranga / Frank P. Coyle / Frank PCoyle
    ...
    Disponible

    111,91 €

Otros libros del autor

  • Modern C++ Programming Cookbook - Third Edition
    Marius Bancila
    Packed with practical recipes, explore the latest advancements in C++, optimize performance, and gain insights into essential techniques though this comprehensive guide.Purchase of the print or Kindle book includes a free eBook in PDF format.Key FeaturesNot just a guide to C++23 programming; find the right solution to over 150 coding tasks in any modern variant of C++Learn all ...
    Disponible

    80,94 €

  • Modern C++ Programming Cookbook - Second Edition
    Marius Bancila
    ...
    Disponible

    76,29 €

  • The Modern C++ Challenge
    Marius Bancila
    Test your C++ programming skills by solving real-world programming problems covered in the book Key Features Solve a variety of real-world programming and logic problems by leveraging the power of C++17Test your skills in using language features, algorithms, data structures, design patterns, and moreExplore areas such as cryptography, communication, and image handling in C++ B...
    Disponible

    52,03 €

  • Modern C++ Programming Cookbook
    Marius Bancila
    ...
    Disponible

    75,74 €