Upcoming Events
Southwest Gaming Expo
11/20 - 11/22 @ Dallas, TX

Workshop on Network and Systems Support for Games (NetGames 2009)
11/23 - 11/25 @ Paris, France

ICIDS 2009 Interactive Storytelling
12/9 - 12/11 @ Guimarăes, Portugal

Global Game Jam
1/29 - 1/31  

More events...


Quick Stats
6795 people currently visiting GDNet.
2341 articles in the reference section.

Help us fight cancer!
Join SETI Team GDNet!



Link to us

Link to us

Home » Books » Book Listing
  Intel sponsors gamedev.net search:   
Books @ GameDev.net Jump to:
C++ books
Software Engineering books
All books
Modern C++ Design
by Andrei Alexandrescu
Published February 2001
List Price: $54.99, Your Amazon.com Price: $42.89
Addison-Wesley Price: $41.24
Average rating:
Amazon Sales Rank: 11,260

Buy it now: From Addison-Wesley

Summary
Generic Programming and Design Patterns Applied


Similar Books
Effective C++, 3rd Ed. by Scott Meyers
Exceptional C++ by Herb Sutter
C++ Coding Standards by Herb Sutter, Andrei Alexandrescu

Write an online review and share your thoughts with other members.
Member Reviews
This book is an excellent demonstration of how to apply advanced template metaprogramming to simple problems to arrive at a much more elegant solution.
I was surprised to see that the book solved quite a few problems I've thought about extensively in the past. Even for those problems of mine it didn't solve directly, it still shed quite a light on them and helped me discover elegant solutions that don't look like they've been hacked together by accident.


'State-of-the-art' generic programming in C++ (2000-2002).
The work-horse of the book is the TypeList construct with enables one to maintain and manipulate list of type-information at compile time.


With TypeList in hand, it is possible to automate the implementation of design patterns. Several GoF design patterns are implemented in template code are explained in the book.



The (template) policy based smart-pointer implementation may become part of the C++0x standard.



The SmallObjectAllocator mitigates object construction and destruction (takes about 400 CPU ticks to do both) for small objects, making typically high-overhead designs practical for performance sensitive code.



Generalized Functors make functions & methods (and other functors) first class citizens in C++, with full value semantics. An obvious application is implementing Undo/Redo, and an example is provided in the book.



At the time of publishing, very few compilers supported enough C++ to compile Loki (the name of the Modern C++ library). This has recently changed (Aug-2002), as Loki has been ported to gcc 2.95, Microsoft Visual C++ 7, Borland C++ Builder 6, & CodeWarrior 6.


All times are ET (US)


Write an online review and share your thoughts with other members.
Full details
See the full details or purchase this book online at one of the links below:

  Addison-Wesley
  Amazon.com
  Amazon.co.uk 
  Amazon.ca
  Amazon.de
  Amazon.fr