1. Item 1: Understand template type deduction.
  2. Item 2: Understand auto type deduction.
  3. Item 3: Understand decltype.
  4. Item 4: Know how to view deduced types.
  5. Item 5: Prefer auto to explicit type declarations.
  6. Item 6: Use the explicitly typed initializer idiom when auto deduces undesired types.
  7. Item 7: Distinguish between () and {} when creating objects.
  8. Item 8: Prefer nullptr to 0 and NULL.
  9. Item 9: Prefer alias declarations to typedefs.
  10. Item 10: Prefer scoped enums to unscoped enums.
  11. Item 11: Prefer deleted functions to private undefined ones.
  12. Item 12: Declare overriding functions override.
  13. Item 13: Prefer const_iterators to iterators.
  14. Item 14: Declare functions noexcept if they won’t emit exceptions.
  15. Item 15: Use constexpr whenever possible.
  16. Item 16: Make const member functions thread safe.
  17. Item 17: Understand special member function generation.
  18. Item 18: Use std::unique_ptr for exclusive-ownership resource management.
  19. Item 19: Use std::shared_ptr for shared-ownership resource management.
  20. Item 20: Use std::weak_ptr for std::shared_ptr like pointers that can dangle.

  21. Item 21: Prefer std::make_unique and std::make_shared to direct use of new.
  22. Item 22: When using the Pimpl Idiom, define special member functions in the implementation file.
  23. Item 23: Understand std::move and std::forward.
  24. Item 24: Distinguish universal references from rvalue references.
  25. Item 25: Use std::move on rvalue references, std::forward on universal references.
  26. Item 26: Avoid overloading on universal references.
  27. Item 27: Familiarize yourself with alternatives to overloading on universal references.
  28. Item 28: Understand reference collapsing.
  29. Item 29: Assume that move operations are not present, not cheap, and not used.
  30. Item 30: Familiarize yourself with perfect forwarding failure cases.
  31. Item 31: Avoid default capture modes.
  32. Item 32: Use init capture to move objects into closures.
  33. Item 33: Use decltype on auto&& parameters to std::forward them.
  34. Item 34: Prefer lambdas to std::bind.
  35. Item 35: Prefer task-based programming to thread-based.
  36. Item 36: Specify std::launch::async if asynchronicity is essential.
  37. Item 37: Make std::threads unjoinable on all paths.
  38. Item 38: Be aware of varying thread handle destructor behavior.
  39. Item 39: Consider void futures for one-shot event communication.
  40. Item 40: Use std::atomic for concurrency, volatile for special memory.

  41. Item 41: Consider pass by value for copyable parameters that are cheap to move and always copied.
  42. Item 42: Consider emplacement instead of insertion.

Effective Modern C++ 42 Specific Ways to Improve Your Use of C++11 and C++14的更多相关文章

  1. 决定干点事儿--翻译一下《effective modern c++》

    写了非常多关于C++11的博客.总是认为不踏实,非常多东西都是东拼西凑.市场上也非常少有C++11的优秀书籍,但幸运的是Meyers老爷子并没有闲赋.为我们带来了<effective moder ...

  2. [C++11] Effective Modern C++ 读书笔记

    本文记录了我读Effective Modern C++时自己的一些理解和心得. item1:模板类型推导 1)reference属性不能通过传值参数传入模板函数.这就意味着如果模板函数需要一个refe ...

  3. Effective Modern C++翻译(1):序言

    /*********************************************************** 关于书: 书是我从网上找到的effective Modern C++的样章,内 ...

  4. 《Effective Modern C++》翻译--简单介绍

    北京时间2016年1月9日10:31:06.正式開始翻译.水平有限,各位看官若有觉得不妥之处,请批评指正. 之前已经有人翻译了前几个条目,有些借鉴出处:http://www.cnblogs.com/m ...

  5. Effective Modern C++:01类型推导

    C++的官方钦定版本,都是以ISO标准被接受的年份命名,分别是C++98,C++03,C++11,C++14,C++17,C++20等.C++11及其后续版本统称为Modern C++. C++11之 ...

  6. Effective Modern C++翻译(2)-条款1:明白模板类型推导

    第一章 类型推导 C++98有一套单一的类型推导的规则:用来推导函数模板,C++11轻微的修改了这些规则并且增加了两个,一个用于auto,一个用于decltype,接着C++14扩展了auto和dec ...

  7. 8 ways to improve ASP.NET Web API performance

    ASP.NET Web API is a great piece of technology. Writing Web API is so easy that many developers don’ ...

  8. 《Effective Modern C++》翻译--条款4:了解怎样查看推导出的类型

    条款4:了解怎样查看推导出的类型 那些想要了解编译器怎样推导出的类型的人通常分为两个阵营. 第一种阵营是实用主义者.他们的动力通常来自于编敲代码过程中(比如他们还在调试解决中),他们利用编译器进行寻找 ...

  9. Ten ways to improve the performance of large tables in MySQL--转载

    原文地址:http://www.tocker.ca/2013/10/24/improving-the-performance-of-large-tables-in-mysql.html Today I ...

随机推荐

  1. 闲来无事,写个基于UDP协议的Socket通讯Demo

    项目一期已经做完,二期需求还没定稿,所以最近比较闲. 上一篇写的是TCP协议,今天写一下UDP协议.TCP是有连接协议,所以发送和接收消息前客户端和服务端需要建立连接:UDP是无连接协议,所以发送消息 ...

  2. hdu1532网络流

    (双倍经验题) 第二次写dinic模板,居然一遍写对了,而且短了不少O(∩_∩)O~ #include <cstdio> #define INF 2147483647 int n,m,an ...

  3. [译]App Framework 2.1 (2)之 About

    英文原文在此:http://app-framework-software.intel.com/documentation.php#App Framework/af_about App Framewor ...

  4. Hibernate中Criteria的完整用法

    1,CriteriaHibernate 设计了 CriteriaSpecification 作为 Criteria 的父接口,下面提供了 Criteria和DetachedCriteria .2,De ...

  5. hbase

    http://www.yiibai.com/hbase/hbase_installation.html http://www.linuxidc.com/Linux/2015-03/114669.htm ...

  6. 删除MSSQL中所有表的数据

    CREATE PROCEDURE sp_DeleteAllDataASEXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL'EXEC ...

  7. Python 爬虫5——爬取并下载网页指定规格的图片

    看完上篇文档之后,我们对于正则表达式已经有了基本的了解,其实学习最有效的办法就是带着问题和目的,这里我们假设有一个目标:获取某个网页上指定规格的图片的链接地址,并下载到本地. 一.实现步骤: 1.在浏 ...

  8. WEB前端工程师(实践)制作天气预报难度:简单

    需要准备:jQuery Bootstrap 天气预报API(本文中使用API可能会失效请灵活运用) CSS样式可以你自己去写这里只提出jQuery 请求数据和解析JSON数据 { "resu ...

  9. 初学后台框架总结篇二——快速了解CI框架

    一.下载CI框架并安装,这里放置一张自己的项目目录结构图 目录框架搭建好之后开始将自己的项目与框架融合 二.更改相关配置 1.用任何文本编辑器打开 application/config/config. ...

  10. iOS开发查看手机app本地存储的文件

    开发过程中,有时会在本地存储一些文件,但是我们不确定有没有存上,可以通过以下方法来查看测试手机上本地存储的文件: 1.选择xcode上面的window下面的Devices 2.先在左边选中你当前的设备 ...