没有合适的资源?快使用搜索试试~ 我知道了~
Practical C++ Metaprogramming.pdf
需积分: 5 1 下载量 19 浏览量
2022-11-23
09:35:42
上传
评论
收藏 2.47MB PDF 举报
温馨提示
试读
54页
Practical C++ Metaprogramming.pdf
资源推荐
资源详情
资源评论
Edouard Alligand and Joel Falcou
Practical C++
Metaprogramming
Modern Techniques for
Accelerated Development
Boston Farnham Sebastopol
Tokyo
Beijing Boston Farnham Sebastopol
Tokyo
Beijing
978-1-491-95504-8
[LSI]
Practical C++ Metaprogramming
by Edouard Alligand and Joel Falcou
Copyright © 2016 O’Reilly Media, Inc. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA
95472.
O’Reilly books may be purchased for educational, business, or sales promotional use.
Online editions are also available for most titles (http://safaribooksonline.com). For
more information, contact our corporate/institutional sales department:
800-998-9938 or corporate@oreilly.com.
Editors: Nan Barber and Brian Foster
Production Editor: Colleen Lobner
Copyeditor: Octal Publishing, Inc.
Proofreader: Rachel Head
Interior Designer: David Futato
Cover Designer: Randy Comer
Illustrator: Rebecca Demarest
September 2016:
First Edition
Revision History for the First Edition
2016-09-13: First Release
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. Practical C++
Metaprogramming, the cover image, and related trade dress are trademarks of
O’Reilly Media, Inc.
While the publisher and the authors have used good faith efforts to ensure that the
information and instructions contained in this work are accurate, the publisher and
the authors disclaim all responsibility for errors or omissions, including without
limitation responsibility for damages resulting from the use of or reliance on this
work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is sub‐
ject to open source licenses or the intellectual property rights of others, it is your
responsibility to ensure that your use thereof complies with such licenses and/or
rights.
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
1.
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
A Misunderstood Technique 1
What Is Metaprogramming? 3
How to Get Started with Metaprogramming 6
Summary 8
2.
C++ Metaprogramming in Practice. . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
A Typical Code Maintenance Assignment 9
Creating a Straightforward Interface 10
Generating Code Automatically 13
Making Values and Pointers Work Together 13
Putting It All Together 25
Summary 26
3.
C++ Metaprogramming and Application Design. . . . . . . . . . . . . . . . 27
Compile-Time Versus Runtime Paradigms 27
Type Containers 30
Compile-Time Operations 31
Advanced Uses of Metaprogramming 40
Helper Functions and Libraries 42
Summary 43
v
剩余53页未读,继续阅读
资源评论
承让@
- 粉丝: 5
- 资源: 380
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功