• Complain

Marius Bancila - Template Metaprogramming with C++

Here you can read online Marius Bancila - Template Metaprogramming with C++ full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2022, publisher: Packt Publishing, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Marius Bancila Template Metaprogramming with C++
  • Book:
    Template Metaprogramming with C++
  • Author:
  • Publisher:
    Packt Publishing
  • Genre:
  • Year:
    2022
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Template Metaprogramming with C++: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Template Metaprogramming with C++" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Understand how to use modern C++ templates for writing maintainable, robust, and fast softwareKey FeaturesGrasp 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 DescriptionLearn how the metaprogramming technique enables you to create data structures and functions that allow computation to happen at compile time. With this book, youll 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. Youll 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, youll learn how to write variadic templates and how to provide requirements to the template arguments with C++20 constraints and concepts. Finally, youll apply your knowledge of C++ metaprogramming templates to implement various metaprogramming patterns and techniques.By the end of this book, youll have learned how to write effective templates and implement metaprogramming in your everyday programming journey.What you will learnUnderstand 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 forThis 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.

Marius Bancila: author's other books


Who wrote Template Metaprogramming with C++? Find out the surname, the name of the author of the book and a list of all author's works by series.

Template Metaprogramming with C++ — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Template Metaprogramming with C++" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Template Metaprogramming with C Learn everything about C templates and - photo 1
Template Metaprogramming with C++

Learn everything about C++ templates and unlock the power of template metaprogramming

Marius Bancila

BIRMINGHAMMUMBAI Template Metaprogramming with C Copyright 2022 Packt - photo 2

BIRMINGHAMMUMBAI

Template Metaprogramming with C++

Copyright 2022 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

Associate Group Product Manager: Gebin George

Content Development Editor: Rosal Colaco

Technical Editor: Pradeep Sahu

Copy Editor: Safis Editing

Project Coordinator: Manisha Singh

Proofreader: Safis Editing

Indexer: Sejal Dsilva

Production Designer: Vijay Kamble

Business Development Executive: Kriti Sharma

Marketing Coordinator: Sonakshi Bubbar

First published: July 2022

Production reference: 1220722

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham

B3 2PB, UK.

ISBN 978-1-80324-345-0

www.packt.com

To the curious minds that always want to learn more.

Marius Bancila

Contributors
About the author

Marius Bancila is a software engineer with two decades of experience in developing solutions for line of business applications and more. He is the author of Modern C++ Programming Cookbook and The Modern C++ Challenge. He works as a software architect and is focused on Microsoft technologies, mainly developing desktop applications with C++ and C#. He is passionate about sharing his technical expertise with others and, for that reason, he has been recognized as a Microsoft MVP for C++ and later developer technologies since 2006. Marius lives in Romania and is active in various online communities.

About the reviewer

Aleksei Goriachikh has 8+ experience in C++ programming. After graduating from Novosibirsk State University in 2012 with a masters degree in mathematics, Aleksei has worked on research projects in the areas of computational mathematics and optimization, a geometric kernel for CAD systems, and a multi-threaded library for autonomous driving. Alekseis last professional interest is pre-silicon modelling.

Table of Contents
Preface

The C++ programming language is one of the most widely used in the world and it has been so for decades. Its success isnt due just to the performance it provides or maybe to its ease of use, which many would argue against, but probably to its versatility. C++ is a general-purpose, multi-paradigm programming language that blends together procedural, functional, and generic programming.

Generic programming is a paradigm of writing code such as that entities such as functions and classes are written in terms of types that are specified later. These generic entities are instantiated only when needed for specific types that are specified as arguments. These generic entities are known as templates in C++.

Metaprogramming is the programming technique of using templates (and constexpr functions in C++) to generate code at compile-time that is then merged with the rest of the source code for compiling a final program. Metaprogramming implies that at least an input or an output is a type.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Template Metaprogramming with C++»

Look at similar books to Template Metaprogramming with C++. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Template Metaprogramming with C++»

Discussion, reviews of the book Template Metaprogramming with C++ and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.