More Exceptional C++

Tags:, , ; 386 downloads ; Comments: One Response

More Exceptional C++
by Herb Sutter

Paperback: 256 pages
Publisher: Addison-Wesley Professional; 1st edition (December 17, 2001)
Language: English
ISBN: 020170434X

Book Description

020170434xgg0 More Exceptional C++
Aimed at advanced C++ developers who want to hone their programming chops even further, Herb Sutter’s More Exceptional C++ borrows the format of his earlier title, Exceptional C++, and delivers some of today’s best-available thinking on the language in a handy and effective format. A compilation of the author’s own experience and research on the thornier aspects of C++, this book will serve as a worthy resource for making sure you get the most out of this powerful language.

The concise text covers a range of challenging topics in C++ without attempting to be comprehensive. Each “item” is presented as a question to try and solve yourself before the author presents his solution, plus additional detail as needed. For most topics, Sutter ends by giving his advice on the best practices (and gotchas to avoid).

Early sections concentrate on using Standard Template Library (STL) container classes, like removing items effectively, and the subtle differences between container types. Standout sections on designing custom templates (using specialization techniques) and exception-safe classes will help you do more with your own classes. One entertaining problem here shows a number-guessing game (Mastermind) built as efficiently as possible using STL code (including expert-level use of generic functions to do much of the work).

Several problems on copy-on-write (COW) semantics for more efficient classes point out the issues surrounding code optimization. (The author argues against a simplistic approach to optimizing code, including an overreliance on inlining functions. Several times he points out the difficulty of getting COW code to work in multithreaded projects.)

There has been a debate in the C++ community for years about whether it’s possible to design truly “exception-safe” classes. Sutter points out the difficulty with a precise analysis of the issues surrounding exceptions and C++ constructors. Material on the finer points of inheriting classes (including when to avoid and when to use multiple inheritance in C++) will extend your class design options. A good section here is the author’s explication of how to simulate COM/Java style interfaces in C++, which isn’t immediately obvious, even to experienced C++ developers.

Later sections delve into code maintenance issues, including advice for using macros, typedefs, and namespaces. (Advice on migrating existing C++ code into namespaces will help you combine legacy code with other libraries.) A final appendix shows off some benchmarks for optimizing strings using a variety of techniques.

Intelligent, provocative, and demanding, More Exceptional C++ shows why C++ continues to be a rich, complex, and challenging language. Armed with titles like this one, experienced C++ programmers can write better code and avoid pitfalls buried in the outer edges of their favorite language. –Richard Dragan

Topics covered: Puzzles and solutions to advanced topics in C++, using remove() and erase() for Standard Template Library (STL) containers, custom templates with inheritance and traits, using typename, containers used with pointers, the finer points of vector, set, and maps, potential problems with vector < bool >, post and prefix operators used with functions, templates overloading, explicit and partial template specialization (plus function template overloading), using STL to implement Mastermind (a number-guessing game), the finer points of inline functions, lazy optimizations (including copy-on-write–COW–and semantics for strings), iterators and references, gotchas in multithreaded environments, designing exception-safe classes, constructor failures and object lifetimes, uncaught exceptions (the pitfalls of using uncaught_exception()), unmanaged pointers (in parameter evaluation and auto_ptr); copy assignment, inheritance and exception safety issues, multiple inheritance dos and don’ts, the Siamese Twin problem, virtual functions, controlled polymorphism, memory management issues with smart pointers (auto_ptr), recursive declarations, how to simulate nested functions, preprocessor macros, hints for initialization, forward declarations, using typedef effectively, best practices for namespaces (including code maintenance and migrating existing C++ code to namespaces), and appendices on advice for multithreaded optimization.[asa book][/asa]2ikxlef More Exceptional C++

Popularity: 10% [?]

Note: We do not host these ebook files. If you have any complaint of copyright, please comment or contact us. We'll remove the download link immediatly!
We are pleased to offer you this exciting, new, and entirely free professional resource. Visit our Free Industry resource center today to browse our selection of 600+ complimentary Industry magazines, white papers, webinars, podcasts, and more.
Download Links:
Link1
Depositfiles
Tools to Download Faster
TweetBucks, Linkbee

Related eBooks - Up | Down


Introduction to Game Programming with C+...

Introduction to Game Programming with C++ Author: Alan Thorn Publisher: Wordware Publishing; 1 edition Publication Date: 2007-05-15 ISBN-10: 1598220322 ISBN-13: 9781598220322 Paperback: 392 Pages Introduction to Game Programming with C++ explores the world of game development with a focus on C++. This book begins ...
Download
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

Tags:, , ; 6 downloads ; Comments: 4 Responses

Learning C#...

Learning C# Author: Jesse Liberty Publisher: O'Reilly Media Publication Date: 2002-09 ISBN-10: 0596003765 ISBN-13: 9780596003760 Paperback: 368 Pages Jesse Liberty, author of the best-selling books Programming C# and Programming ASP.NET, has written an entry-level guide to C#. Written in a warm and friendly manner, ...
Download
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

Tags:, ; 49 downloads ; Comments: 5 Responses

C in a Nutshell (In a Nutshell (O’...

C in a Nutshell (In a Nutshell (O'Reilly)) by Peter Prinz and Tony Crawford Paperback: 618 pages Publisher: O'Reilly Media, Inc.; illustrated edition edition (December 16, 2005) Language: English ISBN-10: 0596006977 ISBN-13: 978-0596006976 Description of C in a Nutshell (In a Nutshell (O'Reilly)) "As ...
Download
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

Tags:, ; 47 downloads ; Comments: 6 Responses

Programming Microsoft Windows with C#...

Programming Microsoft Windows with C# by Charles Petzold Paperback: 1290 pages Publisher: Microsoft Press (January 18, 2002) Language: English ISBN-10: 0735613702 ISBN-13: 978-0735613706 ...
Download
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Tags:, , , ; 51 downloads ; Comments: 10 Responses

CLR via C#, Second Edition (Pro Develope...

CLR via C#, Second Edition (Pro Developer) by Jeffrey Richter Paperback: 736 pages Publisher: Microsoft Press; 2 edition (March 22, 2006) Language: English ISBN-10: 0735621632 ISBN-13: 978-0735621633 ...
Download
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Tags:, , ; 59 downloads ; Comments: 10 Responses

Programming with C++...

Programming with C++ Juneja, B.L. , Formerly Professor Deptt. of Mechanical Engg., IIT, Delhi. Seth, Anita , Teaching Faculty, Institute of Engineering and Technology, DAVV University, Indore, Madhya Pradesh ISBN : 978-81-224-2613-7 Publication Year : Jan, 2009 Edition : 1st Reprint : 2009 Pages : ...
Download
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Tags:, ; 16 downloads ; Comments: No Responses

Cross-Platform Web Services Using C# �...

Cross-Platform Web Services Using C# & JAVA (Programming Series) by Brian Hochgurtel Paperback: 386 pages Publisher: Charles River Media; 1 edition (March 11, 2003) Language: English ISBN-10: 1584502622 ISBN-13: 978-1584502623 ...
Download
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Tags:, , , ; 19 downloads ; Comments: No Responses

C# 2008 Codebook (C Sharp)...

C# 2008 Codebook (C Sharp) by Jürgen Bayer Hardcover: 1168 pages Publisher: Addison Wesley Verlag (January 1, 2008) Language: German ISBN-10: 3827325765 ISBN-13: 978-3827325761 ...
Download
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

Tags:, ; 91 downloads ; Comments: One Response