没有合适的资源?快使用搜索试试~ 我知道了~
C++17 in Detail - Bartłomiej Filipek
需积分: 29 37 下载量 27 浏览量
2020-04-03
11:41:24
上传
评论
收藏 1.37MB PDF 举报
温馨提示
C++ 11是语言的主要更新。它具有lambdas、constexpr、变量模板、线程、基于范围的for循环、智能指针和许多更强大的元素等所有现代功能,标志着语言的巨大进步。后来有了一个小的更新——C++ 14,它改进了一些以前的标准,增加了一些小的元素。 C++ 17虽然没有C++ 11大,但它比C++ 14大,带来了许多令人兴奋的补充和改进。这本书将指导所有的人!
资源推荐
资源详情
资源评论
This book is for sale at http://leanpub.com/cpp17indetail
This version was published on 2019-11-13
This is a Leanpub book. Leanpub empowers authors and publishers with the Lean
Publishing process. Lean Publishing is the act of publishing an in-progress ebook using
lightweight tools and many iterations to get reader feedback, pivot until you have the right
book and build traction once you do.
© 2018 - 2019 Bartłomiej Filipek
C++17 in De
tail
Learn the Exci
ting Features of The New C+
+ Standard!
Bartłom
iej Filipek
for Wiola and Mikołaj
Contents
About the Author ....................................... i
Technical Reviewer ...................................... ii
Additional Reviewers & Supporters ........................... iii
Foreword ............................................ vi
Preface .............................................. vii
About the Book .........................................viii
Who This Book is For ................................... viii
Overall Structure of the Book ............................... ix
Reader Feedback ...................................... x
Example Code ........................................ x
Part 1 - Language Features ..................... 1
1. Quick Start ......................................... 2
2. Removed or Fixed Language Features ......................... 5
Removed Elements ..................................... 6
Fixes ............................................. 9
Compiler Support ...................................... 12
3. Language Clarification .................................. 13
Stricter Expression Evaluation Order .......................... 14
Guaranteed Copy Elision ................................. 18
Dynamic Memory Allocation for Over-Aligned Data ................. 23
Exception Specifications in the Type System ...................... 26
CONTENTS
Compiler Support ...................................... 27
4. General Language Features ............................... 28
Structured Binding Declarations ............................. 29
Init Statement for
if
and
switch
............................ 37
Inline Variables ....................................... 40
constexpr Lambda Expressions ............................ 42
Capturing
[*this] in Lambda Expressions ...................... 43
Nested Namespaces .................................... 45
__has_include Preprocessor Expression ....................... 47
Compiler support ...................................... 49
5. Templates .......................................... 50
Template Argument Deduction for Class Templates .................. 51
Fold Expressions ...................................... 55
if constexpr ...................................... 58
Declaring Non-Type Template Parameters With
auto ................ 65
Other Changes ....................................... 66
Compiler Support ...................................... 69
6. Standard Attributes .................................... 70
Why Do We Need Attributes? .............................. 71
Before C++11 ........................................ 72
Attributes in C++11 and C++14 .............................. 73
C++17 Additions ...................................... 74
Section Summary ...................................... 80
Compiler support ...................................... 80
Appendix A - Compiler Support ............................... 81
Compiler Support of C++17 Features ........................... 82
Appendix B - Resources and References .......................... 85
The Full Version of The Book ................................ 89
剩余108页未读,继续阅读
资源评论
kuyewen1
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功