注冊(cè) | 登錄讀書好,好讀書,讀好書!
讀書網(wǎng)-DuShu.com
當(dāng)前位置: 首頁出版圖書科學(xué)技術(shù)計(jì)算機(jī)/網(wǎng)絡(luò)軟件與程序設(shè)計(jì)C/C++及其相關(guān)More Effective C++(英文版)

More Effective C++(英文版)

More Effective C++(英文版)

定 價(jià):¥39.00

作 者: (美)邁耶斯 著
出版社: 機(jī)械工業(yè)出版社
叢編項(xiàng):
標(biāo) 簽: C++

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

內(nèi)容簡(jiǎn)介

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

作者簡(jiǎn)介

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

圖書目錄

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) m.ranfinancial.com 2005-2020, All Rights Reserved.
鄂ICP備15019699號(hào) 鄂公網(wǎng)安備 42010302001612號(hào)