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

0
(0)

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

作者:MariusBancila

出版社:PacktPublishing

副标题:LearneverythingaboutC++templatesandunlockthepoweroftemplatemetaprogramming

页数:480

定价:USD63.75

装帧:平装

ISBN:9781803243450

内容简介
······

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.

作者简介
······

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.

目录
······

Introduction to Templates

Template Fundamentals

Variadic Templates

Advanced Template Concepts

Type Traits and Conditional Compilation

Concepts and Constraints

Patterns and Idioms

Ranges and Algorithms

The Ranges Library

Appendix

评论 ······

语言非常精确,在术语的使用方面,和cppreference以及draft里的用法一致。示例生动全面,且例子中的一些细节,例如涉及到多态的一些写法,也符合其它文献给出的最佳实践标准。适合对C++11熟悉的人入门模板元编程。

后半部分以前面介绍的模板相关的知识为基础,深入浅出地讲解了C++中常见的若干种设计模式的必要性和基于最新标准的模板的实现方式的优越性。

最后,进一步介绍了C++20标准中,以…

语言非常精确,在术语的使用方面,和cppreference以及draft里的用法一致。示例生动全面,且例子中的一些细节,例如涉及到多态的一些写法,也符合其它文献给出的最佳实践标准。适合对C++11熟悉的人入门模板元编程。

后半部分以前面介绍的模板相关的知识为基础,深入浅出地讲解了C++中常见的若干种设计模式的必要性和基于最新标准的模板的实现方式的优越性。

最后,进一步介绍了C++20标准中,以…

点击星号评分!

平均分 0 / 5. 投票数: 0

还没有投票!请为他投一票。

推荐阅读

评论 抢沙发

评论前必须登录!

 

登录

找回密码

注册