Effective Modern C++

Effective Modern C++ pdf epub mobi txt 电子书 下载 2025

出版者:东南大学出版社
作者:[美] Scott Meyers
出品人:
页数:315
译者:
出版时间:2015-9-1
价格:62.00元
装帧:平装
isbn号码:9787564159115
丛书系列:
图书标签:
  • C++
  • 编程
  • 计算机科学
  • 计算机
  • 软件开发
  • 英文版
  • 编程语言
  • Effective
  • C++
  • Modern
  • C++
  • Effective
  • 编程技巧
  • 性能优化
  • 代码质量
  • C++11
  • C++14
  • C++17
  • Scott Meyers
想要找书就要到 小美书屋
立刻按 ctrl+D收藏本页
你会得到大惊喜!!

具体描述

《Effective Modern C++:改善C++11和C++14的42个具体做法(影印版)(英文版)》中包括以下主题:剖析花括号初始化、noexcept规范、完美转发、智能指针make函数的优缺点;讲解std∷move,std∷forward,rvalue引用和全局引用之间的关联;介绍编写清晰、正确、高效lambda表达式代码的技巧;辨析std∷atomic和volatile之间的差异,它们各自该如何使用,还有它们与C++并行计算API之间的关联;如何修改老C++编程(比如C++98)中的实践,使之符合现代C++的软件开发规范。

作者简介

Scott Meyers is one of the world's foremost authorities on C++. He wrote the best-selling Effective C++ series (Effective C++, More Effective C++, and Effective STL); published and maintains the annotated training materials Overview of the New C++ (C++11/14) and Effective C++ in an Embedded Environment; is Consulting Editor for the Effective Software Development Series, and, with Herb Sutter and Andrei Alexandrescu, is a principal in C++ and Beyond. He has a Ph.D in Computer Science from Brown University. He's currently working on a new book, Effective Modern C++, which he expects to publish this fall.

目录信息

From the Publisher
Acknowledgments
Introduction
1.Deduang Types
Item 1: Understand template type deduction.
Item 2: Understand auto type deduction.
Item 3: Understand decltype.
Item 4: Know how to view deduced types.
2.auto
Item 5: Prefer auto to explicit type declarations.
Item 6: Use the explicitly typed initializer idiom when auto deduces undesired types.
3.Moving to Modern C++
Item 7: Distinguish between()and {} when creating objects.
Item 8: Prefer nullptr to 0 and NULL.
Item 9: Prefer alias declarations to typedefs.
Item 10: Prefer scoped enums to unscoped enums.
Item 11: Prefer deleted functions to private undefined ones.
Item 12: Declare overriding functions override.
Item 13: Prefer const_iterators to iterators.
Item 14: Declare functions noexcept ifthey won't emit exceptions.
Item 15: Use constexpr whenever possible.
Item 16: Make const member functions thread safe.
Item 17: Understand special member function generation.
4.Smart Pointers
Item 18: Use std ∷unique_ptr for exclusive—ownership resource management.
Item 19: Use std ∷ shared_ptr for shared—ownership resource management.
Item 20: Use std ∷weak_ptr for std ∷ shared_ptr—like pointers that can dangle.
Item 21: Prefer std∷make_unique and std∷make_shared to direct use of new.
Item 22: When using the Pimplldiom,define speaal member functions in the implementation file.
5.Rvalue References,Move Semantics,and Perfect Forwarding
Item 23: Understand std∷move and std∷forward.
Item 24: Distinguish universal references from rvalue references.
Item 25: Use std∷move on rvalue references,std∷forwa rd on universal references.
Item 26: Avoid overloading on universal references.
Item 27: Familiarize yourselfwith alternatives to overloading on universal references.
Item 28: Understand reference collapsing.
Item 29: Assume that move operations are not present,not cheap,and not used.
Item 30: Familiarize yourselfwith perfect forwarding failure cases.
6.Lambda Expressions
Item 31: Avoid default capture modes.
Item 32: Use init capture to move objects into closures.
Item 33: Use decltype on auto&& parameters to std∷forwa rd them.
Item 34: Prefer lambdas to std∷bind.
7.The Concurrency API
Item 35: Prefer task—based programming to thread—based.
Item 36: Specify std∷launch∷async if asynchronicity is essential.
Item 37: Make std: :threads unjoinable on all paths.
Item 38: Be aware ofvarying thread handle destructor behavior.
Item 39: Consider void futures for one—shot event communication.
Item 40: Use std∷atomic for concurrency,volatile for special memory.
8.Tweaks
Item 41: Consider pass by value for copyable parameters that are cheap to move and always copied.
Item 42: Consider emplacement instead of insertion.
Index
· · · · · · (收起)

读后感

评分

闲言 去年12月曾花了一周粗读了本书的中文版([https://book.douban.com/subject/30178902/]),翻译的我完全看不下去,自此下定决定除了靠谱译者(例如侯捷)翻译的版本外,宁愿多花钱买原版书。原本预计两到三天读完的书,最终花了四天才完成。 经过一年对C++的学习、阅读和...  

评分

虽然对于业内人士(能熟练、正确地使用C++的,而不是三天两头自己给自己挖坑的用户)来讲大多老调重弹(C++11不算新),不过大略浏览了一下没有发现明显错误,且出现了我在3秒钟之内没反应过来的知识点,仅凭这点就值得一读。

评分

闲言 去年12月曾花了一周粗读了本书的中文版([https://book.douban.com/subject/30178902/]),翻译的我完全看不下去,自此下定决定除了靠谱译者(例如侯捷)翻译的版本外,宁愿多花钱买原版书。原本预计两到三天读完的书,最终花了四天才完成。 经过一年对C++的学习、阅读和...  

评分

虽然对于业内人士(能熟练、正确地使用C++的,而不是三天两头自己给自己挖坑的用户)来讲大多老调重弹(C++11不算新),不过大略浏览了一下没有发现明显错误,且出现了我在3秒钟之内没反应过来的知识点,仅凭这点就值得一读。

评分

读 Scott Meyers 的书这是第四本,首先回顾一下全书的内容。 Scott Meyers 在这本书中分8章42个条款讨论C++11、c++14 主要特性的使用。 * 型别推导 * auto * 转向现代C++ * 智能指针 * 右值引用、移动语义和完美转发 * lambda 表达式 * 并发API * 微调 这本书,对我而言是跟着...  

用户评价

评分

文风比十好几年前基于C++ 98/03标准的Effective系列风趣了好多。质量一如继往的上乘。另外这种逐条陈述的书各个条目之间相对独立,不会有一般技术书那种到最后几章干货和有用信息越来越稀的效应(我把它叫做“狗尾”效应)。

评分

一些地方感觉有些教条主义了,比较适合多次阅读

评分

影印版,内容精深,纸质很赞。

评分

一些地方感觉有些教条主义了,比较适合多次阅读

评分

一些地方感觉有些教条主义了,比较适合多次阅读

本站所有内容均为互联网搜索引擎提供的公开搜索信息,本站不存储任何数据与内容,任何内容与数据均与本站无关,如有需要请联系相关搜索引擎包括但不限于百度google,bing,sogou

© 2025 book.quotespace.org All Rights Reserved. 小美书屋 版权所有