Meer dan 1 miljoen luisterboeken en ebooks in één app. Ontdek Storytel nu.
Non-fictie
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.
© 2022 Packt Publishing (Ebook): 9781803230535
Publicatiedatum
Ebook: 19 augustus 2022
Voor ieder een passend abonnement
Kies het aantal uur en accounts dat bij jou past
Download verhalen voor offline toegang
Kids Mode - een veilige omgeving voor kinderen
Voor wie onbeperkt wil luisteren en lezen.
1 account
Onbeperkte toegang
Meer dan 1 miljoen luisterboeken en ebooks
Altijd opzegbaar
Voor wie zo nu en dan wil luisteren en lezen.
1 account
30 uur/30 dagen
Meer dan 1 miljoen luisterboeken en ebooks
Altijd opzegbaar
Voor wie verhalen met familie en vrienden wil delen.
2-3 accounts
Onbeperkte toegang
Meer dan 1 miljoen luisterboeken en ebooks
Altijd opzegbaar
2 accounts
€18.99 /30 dagenNederlands
Nederland