Home > Store > Programming > C/C++
C++ Standard Library Extensions, The: A Tutorial and Reference
- By Pete Becker
- Published Jul 21, 2006 by Addison-Wesley Professional.
- Copyright 2007
- Dimensions: 7-3/8x9-1/4
- Pages: 624
- Edition: 1st
- Book
- ISBN-10: 0-321-41299-0
- ISBN-13: 978-0-321-41299-7
- eBook
- ISBN-10: 0-321-46799-X
- ISBN-13: 978-0-321-46799-7
Register your product to gain access to bonus material or receive a coupon.
"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.
Online Sample Chapter
Index
Download the Index file from this book.
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 2392>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
Downloadable Sample Chapter
<regex> Header 347Download the Sample Chapter from this book.

This book includes Instant Online Access with
and free shipping!
Instant Online Access with Safari Books Online
With your book purchase you are entitled to free, instant online access to that book on Safari Books Online for 45 days. After you've completed your purchase, you will receive instructions on how to log into Safari Books Online. If you do not want to receive online access to the book, simply uncheck the box for Instant Online Access in your cart.
This book includes Instant Online Access with
and free shipping!
Instant Online Access with Safari Books Online
With your book purchase you are entitled to free, instant online access to that book on Safari Books Online for 45 days. After you've completed your purchase, you will receive instructions on how to log into Safari Books Online. If you do not want to receive online access to the book, simply uncheck the box for Instant Online Access in your cart.

eBook (Adobe DRM)
$51.99
$46.79
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. If you don't already have an Adobe ID, you can create one here.
- Visit our eBook FAQ page for more information.
- Save more by becoming a member.
- Request an Instructor or Media review copy.
- Corporate, Academic, and Employee Purchases
- International Buying Options
Online access to books, videos, and tutorials from Addison Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media and others - starting as low as $22.99. Learn more and start a free trial.


Account Sign In
View your cart