Home > Store > Programming > C/C++

C++ Standard Library Extensions, The: A Tutorial and Reference

Register your product to gain access to bonus material or receive a coupon.

C++ Standard Library Extensions, The: A Tutorial and Reference

eBook (Adobe DRM)

  • Your Price: $41.59
  • List Price: $51.99
  • About Adobe DRM eBooks
  • This eBook requires the free Adobe® Digital Editions software.

    Before downloading this DRM-encrypted PDF, be sure to:


    • Install the free Adobe Digital Editions software on your machine. Adobe Digital Editions only works on Macintosh and Windows, and requires the Adobe Flash Player. Please see the official system requirements.
    • Authorize your copy of Adobe Digital Editions using your Adobe ID (select AdobeID as the eBook vendor). If you don't already have an Adobe ID, you can create one here.

Description

  • Copyright 2007
  • Pages: 640
  • Edition: 1st
  • eBook (Adobe DRM)
  • ISBN-10: 0-321-46799-X
  • ISBN-13: 978-0-321-46799-7

"TR1 roughly doubles the size of the C++ standard library, and it introduces many new facilities and even new kinds of library components. TR1 has some classes, for example, where some nested types may or may not exist depending on the template arguments. To programmers whose experience stops with the standard library, this is strange and unfamiliar. This book is complete (it covers all TR1 facilities), it is easier to understand than TR1 itself, and it is technically accurate."
--Matthew Austern,software engineer, Google

"TR1 will help make the C++ programmer more productive than ever. In this book, Pete Becker has written the ultimate reference guide to these components, what they are, how they work, and what they're used for. This book should be on the bookshelf of anyone who wants to use these standardized components to improve both their productivity as well as their coding quality."
--John Maddock, consultant and programmer

The current C++ standard library extends the core C++ language with common classes and functions. In recent years, to address limitations in that library, a number of components have been developed to extend the language even further. Compiled in a comprehensive technical report (TR1), the bulk of these extensions have been approved for the next revision of the C++ standard.

In this book, Pete Becker describes in detail each component in the TR1 library, explaining new facilities for utilities, containers, call wrappers, type traits, numerics, regular expressions, and C compatibility. He draws on his own experience implementing these components to illustrate their value, clarifying the specifications when necessary and providing complete, tested code examples.

Most chapters include exercises of various degrees of difficulty to help programmers get hands-on practice with the new components. Answers to the exercises, along with all code examples, are available on the Web. Appendixes comprise a summary of headers included in or extended by the TR1 library, as well as guidelines on how to use the components safely in multithreaded applications.

The C++ Standard Library Extensions is for any programmer who wants to get a jump on the revised standard. It also makes the perfect companion to The C++ Standard Library, by Nicolai Josuttis, both books being tutorials and references essential for using C++ more effectively.



Sample Content

Table of Contents

Preface ix

Part I: Utilities 1

Chapter 1: Tuples 3

Chapter 2: Smart Pointers 23

Part II: Containers 79

Chapter 3: Container Basics 81

Chapter 4: The array Class Template 93

Chapter 5: Unordered Associative Containers 113

Part III: Call Wrappers 139

Chapter 6: Call Wrapper Basics 141

Chapter 7: The mem_fn Function Template 159

Chapter 8: The reference_wrapper Class Template 167

Chapter 9: The function Class Template 177

Chapter 10: The bind Function Template 191

Part IV: Type Traits 207

Chapter 11: Type Traits 209

Part V: Numerics 239

Chapter 12: Numeric Functions 241

Chapter 13: Random Number Generators 305

Part VI: Regular Expressions 345

Chapter 14: The <regex> Header 347

Chapter 15: Regular Expression Grammars 353

Chapter 16: Regular Expression Objects 375

Chapter 17: Searching 399

Chapter 18: Search Results 417

Chapter 19: Repetitive Searches 445

Chapter 20: Formatting and Text Replacement 483

Chapter 21: Customizing Regular Expressions 497

Part VII: C Compatibility 505

Chapter 22: C Compatibility 507

Appendixes 535

Appendix A: Headers 537

Appendix B: Utility Headers 573

Appendix C: Multithreading 579

Bibliography 583

Index 585

Updates

Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership