Home > Computing and Information Technology > Computer programming / software engineering > Programming and scripting languages: general > Modern C++ Design: Generic Programming and Design Patterns Applied(C++ In-Depth Series)
16%
Modern C++ Design: Generic Programming and Design Patterns Applied(C++ In-Depth Series)

Modern C++ Design: Generic Programming and Design Patterns Applied(C++ In-Depth Series)

4       |  5 Reviews 
5
4
3
2
1

International Edition


Premium quality
Premium quality
Bookswagon upholds the quality by delivering untarnished books. Quality, services and satisfaction are everything for us!
Easy Return
Easy return
Not satisfied with this product! Keep it in original condition and packaging to avail easy return policy.
Certified product
Certified product
First impression is the last impression! Address the book’s certification page, ISBN, publisher’s name, copyright page and print quality.
Secure Checkout
Secure checkout
Security at its finest! Login, browse, purchase and pay, every step is safe and secured.
Money back guarantee
Money-back guarantee:
It’s all about customers! For any kind of bad experience with the product, get your actual amount back after returning the product.
On time delivery
On-time delivery
At your doorstep on time! Get this book delivered without any delay.
Quantity:
Add to Wishlist

About the Book

In Modern C++ Design, Andrei Alexandrescu opens new vistas for C++ programmers. Displaying extraordinary creativity and programming virtuosity, Alexandrescu offers a cutting-edge approach to design that unites design patterns, generic programming, and C++, enabling programmers to achieve expressive, flexible, and highly reusable code.   This book introduces the concept of generic components—reusable design templates that produce boilerplate code for compiler consumption—all within C++. Generic components enable an easier and more seamless transition from design to application code, generate code that better expresses the original design intention, and support the reuse of design structures with minimal recoding.   The author describes the specific C++ techniques and features that are used in building generic components and goes on to implement industrial strength generic components for real-world applications. Recurring issues that C++ developers face in their day-to-day activity are discussed in depth and implemented in a generic way. These include: Policy-based design for flexibility Partial template specialization Typelists—powerful type manipulation structures Patterns such as Visitor, Singleton, Command, and Factories Multi-method engines For each generic component, the book presents the fundamental problems and design options, and finally implements a generic solution.  

Table of Contents:
Foreword by Scott Meyers. Foreword by John Vlissides. Preface. Acknowledgments. I. TECHNIQUES. 1. Policy-Based Class Design. The Multiplicity of Software Design. The Failure of the Do-It-All Interface. Multiple Inheritance to the Rescue? Templates Bring Hope. Policies and Policy Classes. Enriched Policies. Destructors of Policy Classes. Optional Functionality Through Incomplete Instantiation. Combining Policy Classes. Customizing Structure with Policy Classes. Compatible and Noncompatible Policies. Decomposing a Class in Policies. Summary. 2. Techniques. Compile-Time Assertions. Partial Template Specialization. Local Classes 28 2.4 Mapping Integral Constants to Types. Type-to-Type Mapping. Type Selection. Detecting Convertibility and Inheritance at Compile Time. A Wrapper Around type_info. NullType and EmptyType. Type Traits. Summary. 3. Typelists. The Need for Typelists. Defining Typelists. Linearizing Typelist Creation. Calculating Length. Intermezzo. Indexed Access. Searching Typelists. Appending to Typelists. Erasing a Type from a Typelist. Erasing Duplicates. Replacing an Element in a Typelist. Partially Ordering Typelists. Class Generation with Typelists. Summary. Typelist Quick Facts. 4. Small-Object Allocation. The Default Free Store Allocator. The Workings of a Memory Allocator. A Small-Object Allocator. Chunks. The Fixed-Size Allocator. The SmallObjAllocator Class. A Hat Trick. Simple, Complicated, Yet Simple in the End. Administrivia. Summary. Small-Object Allocator Quick Facts. II. COMPONENTS. 5. Generalized Functors. The Command Design Pattern. Command in the Real World. C11 Callable Entities. The Functor Class Template Skeleton. Implementing the Forwarding Functor::operator(). Handling Functors. Build One, Get One Free. Argument and Return Type Conversions. Handling Pointers to Member Functions. Binding. Chaining Requests. Real-World Issues I: The Cost of Forwarding Functions. Real-World Issues II: Heap Allocation. Implementing Undo and Redo with Functor. Summary. Functor Quick Facts. 6. Implementing Singletons. Static Data + Static Functions != Singleton. The Basic C11 Idioms Supporting Singleton. Enforcing the Singleton's Uniqueness. Destroying the Singleton. The Dead Reference Problem. Addressing the Dead Reference Problem (I):. Addressing the Dead Reference Problem (II):. Implementing Singletons with Longevity. Living in a Multithreaded World. Putting It All Together. Working With SingletonHolder. Summary. SingletonHolder Class Template Quick Facts. 7. Smart Pointers. Smart Pointers 101. The Deal. Smart Pointers' Storage. Smart Pointer Member Functions. Ownership-Handling Strategies. The Address-of Operator. Implicit Conversion to Raw Pointer Type. Equality and Inequality. Ordering Comparisons. Checking and Error Reporting. Smart Pointers to const and const Smart Pointers. Arrays. Smart Pointers and Multithreading. Putting It All Together. Summary. SmartPtr Quick Facts. 8. Object Factories. The Need for Object Factories. Object Factories in C11: Classes and Objects. Implementing an Object Factory. Type Identifiers. Generalization. Minutiae. Clone Factories. Using Object Factories with Other Generic Components. Summary. Factory Class Template Quick Facts. CloneFactory Class Template Quick Facts. 9. Abstract Factory. The Architectural Role of Abstract Factory. A Generic Abstract Factory Interface. Implementing AbstractFactory. A Prototype-Based Abstract Factory Implementation. Summary. AbstractFactory and ConcreteFactory Quick Facts. 10. Visitor. Visitor Basics. Overloading: The Catch-All Function. An Implementation Refinement: The Acyclic Visitor. A Generic Implementation of Visitor. Back to the “Cyclic” Visitor. Hooking Variations. Summary. Visitor Generic Component Quick Facts. 11. Multimethods. What Are Multimethods? When Are Multimethods Needed? Double Switch-on-Type: Brute Force. The Brute-Force Approach Automated. Symmetry with the Brute-Force Dispatcher. The Logarithmic Double Dispatcher. FnDispatcher and Symmetry. Double Dispatch to Functors. Converting Arguments: static_cast or dynamic_cast? Constant-Time Multimethods: Raw Speed. BasicDispatcher and BasicFastDispatcher as Policies. Looking Forward. Summary. Double Dispatcher Quick Facts. Appendix A. Minimalist Multithreading Library. A Critique of Multithreading. Loki's Approach. Atomic Operations on Integral Types. Mutexes. Locking Semantics in Object-Oriented Programming. Optional volatile Modifier. Semaphores, Events, and Other Good Things. Summary. Bibliography. Index. 0201704315T04062001


Best Sellers


Product Details
  • ISBN-13: 9780201704310
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison-Wesley Educational Publishers Inc
  • Depth: 19
  • Language: English
  • Returnable: Y
  • Spine Width: 19 mm
  • Weight: 608 gr
  • ISBN-10: 0201704315
  • Publisher Date: 01 Mar 2001
  • Binding: Paperback
  • Height: 238 mm
  • No of Pages: 360
  • Series Title: C++ In-Depth Series
  • Sub Title: Generic Programming and Design Patterns Applied
  • Width: 189 mm


Similar Products

How would you rate your experience shopping for books on Bookswagon?

Add Photo
Add Photo

Customer Reviews

4       |  5 Reviews 
out of (%) reviewers recommend this product
Top Reviews
Rating Snapshot
Select a row below to filter reviews.
5
4
3
2
1
Average Customer Ratings
4       |  5 Reviews 
00 of 0 Reviews
Sort by :
Active Filters

00 of 0 Reviews
SEARCH RESULTS
1–2 of 2 Reviews
    BoxerLover2 - 5 Days ago
    A Thrilling But Totally Believable Murder Mystery

    Read this in one evening. I had planned to do other things with my day, but it was impossible to put down. Every time I tried, I was drawn back to it in less than 5 minutes. I sobbed my eyes out the entire last 100 pages. Highly recommend!

    BoxerLover2 - 5 Days ago
    A Thrilling But Totally Believable Murder Mystery

    Read this in one evening. I had planned to do other things with my day, but it was impossible to put down. Every time I tried, I was drawn back to it in less than 5 minutes. I sobbed my eyes out the entire last 100 pages. Highly recommend!


Sample text
Photo of
    Media Viewer

    Sample text
    Reviews
    Reader Type:
    BoxerLover2
    00 of 0 review

    Your review was submitted!
    Modern C++ Design: Generic Programming and Design Patterns Applied(C++ In-Depth Series)
    Pearson Education (US) -
    Modern C++ Design: Generic Programming and Design Patterns Applied(C++ In-Depth Series)
    Writing guidlines
    We want to publish your review, so please:
    • keep your review on the product. Review's that defame author's character will be rejected.
    • Keep your review focused on the product.
    • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
    • Refrain from mentioning competitors or the specific price you paid for the product.
    • Do not include any personally identifiable information, such as full names.

    Modern C++ Design: Generic Programming and Design Patterns Applied(C++ In-Depth Series)

    Required fields are marked with *

    Review Title*
    Review
      Add Photo Add up to 6 photos
      Would you recommend this product to a friend?
      Tag this Book
      Read more
      Does your review contain spoilers?
      What type of reader best describes you?
      I agree to the terms & conditions
      You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

      CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

      These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


      By submitting any content to Bookswagon, you guarantee that:
      • You are the sole author and owner of the intellectual property rights in the content;
      • All "moral rights" that you may have in such content have been voluntarily waived by you;
      • All content that you post is accurate;
      • You are at least 13 years old;
      • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
      You further agree that you may not submit any content:
      • That is known by you to be false, inaccurate or misleading;
      • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
      • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
      • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
      • For which you were compensated or granted any consideration by any unapproved third party;
      • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
      • That contains any computer viruses, worms or other potentially damaging computer programs or files.
      You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


      For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


      All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

      Accept

      New Arrivals


      Inspired by your browsing history


      Your review has been submitted!

      You've already reviewed this product!
      ASK VIDYA