C++备忘录057:notes of "Back to The Basics! Essentials of Modern C++ Style"
2020-01-13 17:10
288 查看
CppCon 2014: Herb Sutter “Back to the Basics! Essentials of Modern C++ Style”
一如既往,值得听好几遍的演讲,除了那段perfect forwarding代码似乎有bug
- Write for clarity and correctness first.
- Avoid premature optimization. By default, prefer clear over optimal.
- Avoid premature pessimization, prefer faster when equally clear.
这里似乎没法接受
std::string作为参数,
!std::is_same应该是
std::is_constructible或者
std::is_convertible吧
我犯过本地变量用
auto&&的问题
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- Back to the Basics! Essentials of Modern C++ Style
- An Introduction to the Basics of Modern CSS Buttons
- 《现代 JavaScript 》(Learning JavaScript A Hands-On Guide to the Fundamentals of Modern JavaScript)
- Lack of money back to the moon
- The Elements of C++ Style
- Elements of Programming Style -- The C++ Style Guide
- How to detect the presence of the Visual C++ 2010 redistributable package
- use ItemCreated to set the page style of DataGrid
- In which of the following does a C++ developer use the placement new syntax to make new allocate an
- How To Size Your Apache Flink® Cluster: A Back-of-the-Envelope Calculation
- Use crash to show the code line of a backtrace entry like "ocfs2_truncate_file+0x127/0x6c0"
- Notes to the Reader(Chapter 1 of The C++ Programming Language)
- The Basics of the MMAPI for Java Developers -> Introduction to the MMAPI
- A c++ class wrapper to simplify the use of CRITICAL_SECTION and avoid dead-lock
- Welcome Back to C++ (Modern C++)
- Mailbag: How to perform a silent install of the Visual C++ 2010 redistributable packages
- The Prisoner of Zenda——8、Back to Zenda
- Hook a QT Application with C++ to capture textname of the application
- How to determine the size of a class/struct in the C++?
- Elements of Modern C++ Style