Effective Modern C++

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

Scott Meyers
圖書標籤:
想要找书就要到 求知書站
立刻按 ctrl+D收藏本页
你会得到大惊喜!!
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
· · · · · · (收起)

具体描述

《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++的軟件開發規範。

用户评价

评分

##不愧是经典,中文翻译:https://github.com/kelthuzadx/EffectiveModernCppChinese

评分

##不愧是经典,中文翻译:https://github.com/kelthuzadx/EffectiveModernCppChinese

评分

评分

##很值得参考,理清了C++11和C++14的一些新特性。 不过,章节顺序觉得需要重拍下,刚开始直接实用作者定义的universe reference,而未加说明,有些突兀。直到读到了中间章节才彻底了解这些定义

评分

评分

##很值得参考,理清了C++11和C++14的一些新特性。 不过,章节顺序觉得需要重拍下,刚开始直接实用作者定义的universe reference,而未加说明,有些突兀。直到读到了中间章节才彻底了解这些定义

评分

评分

评分

##印刷太差,出版社太贪

本站所有內容均為互聯網搜索引擎提供的公開搜索信息,本站不存儲任何數據與內容,任何內容與數據均與本站無關,如有需要請聯繫相關搜索引擎包括但不限於百度google,bing,sogou

© 2025 tushu.tinynews.org All Rights Reserved. 求知書站 版权所有