注冊 | 登錄讀書好,好讀書,讀好書!
讀書網(wǎng)-DuShu.com
當前位置: 首頁出版圖書科學技術計算機/網(wǎng)絡軟件與程序設計C/C++及其相關More Effective C++(英文版)

More Effective C++(英文版)

More Effective C++(英文版)

定 價:¥39.00

作 者: (美)邁耶斯 著
出版社: 機械工業(yè)出版社
叢編項:
標 簽: C++

ISBN: 9787111188308 出版時間: 2006-04-01 包裝: 膠版紙
開本: 小16開 頁數(shù): 318 字數(shù):  

內(nèi)容簡介

  本書著重探討了包括異常處理在內(nèi)的一系列高級技術。其特點在于:第一,包含很多時新的標準C++的內(nèi)容;第二,所討論的主題傾向于“戰(zhàn)略化”而非“戰(zhàn)術化”,并且討論得更深入、更徹底,尤其是對虛析構(gòu)函數(shù)、智能指針、引用計數(shù)以及代理類等技術和模式論述的深入程度。如果說《EffectiveC++》主要討論C++中一些相對基礎的概念和技巧的話,那么《MoreEffectiveC++》則著重探討了包括異常處理在內(nèi)的一系列高級技術。與前者相比,后者具有兩大主要區(qū)別:其一,它包含很多時新的標準C++的內(nèi)容;第二,它討論的主題傾向于“戰(zhàn)略化”而非“戰(zhàn)術化”,并且討論得更深入、更徹底。尤其是對虛析構(gòu)函數(shù)、智能指針、引用計數(shù)以及代理類(proxyclasse)等技術和模式論述的深入程度,讓人很難想象是出現(xiàn)于這樣的一本小書之中。游刃有余的技術,高超的寫作技巧,Scott無疑是世界上最優(yōu)秀的C++技術作家之一。在簡潔、清晰、易讀等方面,這兩本書都卓爾不群??傊琒cott提供的這85個可以改善編程技術和設計思維的方法,都是中、高級C++程序員必備的技能。與其姊妹篇《EffectiveC++》一樣,本書充滿了實用性很強的忠告,對每一位以C++為開發(fā)工具的程序員而言,都是必備的讀物。本書主要內(nèi)容·一些經(jīng)過驗證的用來改善程序效率的方法,包括檢驗C++語言特性所帶來的時間和空間上的成本?!と娴孛枋隽薈++專家所使用的高級技術,包括placementnew、virtualconstructors、smartpointers、referencecounting、proxyclasses和double-dispatching等?!ひ詫嵗f明異常處理帶給C++類和函數(shù)的沖擊?!そ榻B新的語言特性,包括bool、mutable、explicit、namespaces、成員模板、標準模板庫等。

作者簡介

  ScottMeyersScottMeyers:世界頂級的C++軟件開發(fā)技術權(quán)威之一。他是兩本暢銷書EffectiveC++和MoreEffectiveC++的作者,以前曾經(jīng)是C++Report的專欄作家。他經(jīng)常為C/C++UsersJournal和Dr.Dobb'sJournal撰稿,也為全球范圍內(nèi)的客戶做咨詢活動。他也是AdvisoryBoardsforNumeriXLLC和InfoCruiser公司的成員。他擁有BrownUniversity的計算機科學博士學位。>>更多作品

圖書目錄

Acknowledgments
Introduction
Basics
Item 1: Distinguish between pointers and references.
Item 2: Prefer C++-style casts.
Item 3: Never treat arrays polymorphically.
Item 4: Avoid gratuitous default constructor's.
Operators
Item 5: Be wary of user-defined conversion functions.
Item 6: Distinguish between prefix and postfix forms of
increment and decrement operators.
Item 7: Never overload &&, ] ], or ,.
Item 8: Understand the different meanings of new
and delete.
Exceptions
Item 9: Use destructors to prevent resource leaks.
Item I0: Prevent resource leaks in constructors.
Item I I: Prevent exceptions from leaving destructors.
Item 12: Understand how throwing an exception differs from
passing a parameter or calling a virtual function.
Item 13: Catch exceptions by reference.
Item 14: Use exception specifications judiciously.
Item 15: Understand the costs of exception handling.
Efficiency
Item 16: Remember the 80-20 rule.
Item 17: Consider using lazy evaluation.
Item 18: Amortize the cost of expected computations.
Item 19: Understand the origin of temporary objects.
Item 20: Facilitate the return value optimization.
Item 21: Overload to avoid implicit type conversions.
Item 22: Consider using op-- instead of stand-alone op.
Item 23: Consider alternative libraries.
Item 24: Understand the costs of virtual functions, multiple
inheritance, virtual base classes, and RTTI.
Techniques
Item 25: Virtualizing constructors and non-member functions.
Item 26: Limiting the number of objects of a class.
Item 27: Requiring or prohibiting heap-based objects.
Item 28: Smart pointers.
Item 29: Reference counting.
Item 30: Proxy classes.
Item 31: Making functions virtual with respect to more than one object.
Miscellany
Item 32: Program in the future tense.
Item 33: Make non-leaf classes abstract.
Item 34: Understand how to combine C++ and C in the same program.
Item 35: Familiarize yourself with the language standard.
Recommended Reading
An auto__ptr Implementation
General Index
Index of Example Classes, Functions, and Templates

本目錄推薦

掃描二維碼
Copyright ? 讀書網(wǎng) www.dappsexplained.com 2005-2020, All Rights Reserved.
鄂ICP備15019699號 鄂公網(wǎng)安備 42010302001612號