The C++ Standard Library
$20.00
Minimum price
$24.00
Suggested price

The C++ Standard Library

What every professional C++ programmer should know about the C++ standard library.

About the Book

"The C++ Standard Library" provides a detailed overview of the C++ Standard Library, including C++23.

The Goal

The C++ Standard Library aims to provide a concise reference of the C++ standard library in about 350 pages. This book assumes that you are familiar with C++. If so, you will get the most benefit from this book. If C++ is new to you, you should start with a textbook about core C++. Once you have mastered a textbook about the core language, you can make your next big step by reading my book.

This book also has more than 150 running code examples for the code snippets I present. Therefore, you can combine theory with practice and get the most out of it.

Many Thanks

In particular, I thank the English proofreaders of my book: Mahesh Attarde, Rick Audet, Pete Barrow, Michael Ben-David, Dave Burns, Alvaro Fernandez, Juliette Grimm, Marius Grimm, George Haake, Nicola Jaud-Stoll, Clare Macrae, Arne Mertz, Ian Reeve, Jason Turner, Bart Vandewoestyne, Ivan Vergiliev, and Andrzej Warzynski. They translated my Swabian English into English. Without their work, the book wouldn't have been possible.

Translations

About the Author

Rainer Grimm
Rainer Grimm

Rainer Grimm

Packages

The Book
  • PDF

  • EPUB

  • WEB

  • English

$20.00
Minimum price
$24.00
Suggested price
The C++ Standard Library Team Edition: Five Copies

Get five copies to the price of three. This package includes all code examples.

  • PDF

  • EPUB

  • WEB

  • English

$60.00
Minimum price
$72.00
Suggested price

Bundles that include this book

$65.00
Bought separately
$50.00
Bundle Price
$106.00
Bought separately
$70.00
Bundle Price

Reader Testimonials

Rick Audet
Rick Audet

Senior Engineer, Dolby Laboratories

Arguably the quickest and easiest way to get up to speed on the most important parts of the C++ standard library. Recommended for any modern C++ programmer.

Zeshuang Mi
Zeshuang Mi

Postgraduate

The C++ Standard Library makes me so clear about the content of the STL, which make me dive into most important parts of the C++ Library. Such as Containers, the usage of the Iterators with Containers, the type of Callable Units, the lookup of Algorithm and so all, Sincerely, all C++ Programmers should treat this book as a reference book. You will benefit a lot. Trust me! At last, I wanna thank the author, thanking his book improves my insight.

Quan Zhuo
Quan Zhuo

Software engineer at Foxconn

The book introduced the new standard library features from C++11 to C++20. With a large number of examples to deepen your understanding. Suitable for C++ enthusiasts to print it and put on the bedside, desk. Concise and comprehensive. Every time I read it, I get someing new.

Table of Contents

  • Reader Testimonials
    • English Edition
    • German Edition
  • Introduction
    • Purpose of this Book
    • Index
    • Conventions
    • Source Examples
    • Source Code
    • Value versus Object
    • Acknowledgments
    • Further Information
    • Cippi
    • About Me
  • 1. The Standard Library
    • The History
    • Overview
    • Use of Libraries
  • 2. Utilities
    • Useful Functions
    • Adaptors for Functions
    • Pairs
    • Tuples
    • Reference Wrappers
    • Smart Pointers
    • Type Traits
    • Time Library
    • std::any, std::optional, and std::variant
    • std::expected
  • 3. Interface of All Containers
    • Create and delete
    • Size
    • Access
    • Assign and Swap
    • Compare
    • Erasure
  • 4. Sequence Containers
    • Arrays
    • Vectors
    • Deques
    • Lists
    • Forward Lists
  • 5. Associative Containers
    • Overview
    • Ordered Associative Containers
    • Unordered Associative Containers
  • 6. Container Adaptors
    • Linear Containers
    • Associative Containers
  • 7. Views
    • Contiguous Access
    • Multidimensional Access
  • 8. Iterators
    • Categories
    • Iterator Creation
    • Useful Functions
    • Adaptors
  • 9. Callable Units
    • Functions
    • Function Objects
    • Lambda Functions
  • 10. Algorithms
    • Conventions
    • Iterators are the Glue
    • Sequential, Parallel, or Parallel Execution with Vectorisation
    • for_each
    • Non-Modifying Algorithms
    • Modifying Algorithms
    • Partition
    • Sort
    • Binary Search
    • Merge Operations
    • Heaps
    • Min and Max
    • Permutations
    • Numeric
    • Unitialized Memory
  • 11. Ranges
    • Range
    • View
    • Range Adaptors
    • Direct on the Containers
    • Function Composition
    • Lazy Evaluation
    • std Algorithms versus std::ranges Algorithms
  • 12. Numeric
    • Random Numbers
    • Numeric Functions Inherited from C
    • Mathematical Constants
  • 13. Strings
    • Create and Delete
    • Conversion Between C++ and C Strings
    • Size versus Capacity
    • Comparison
    • String Concatenation
    • Element Access
    • Input and Output
    • Search
    • Check for a substring
    • Modifying Operations
    • Numeric Conversions
  • 14. String Views
    • Create and Initialise
    • Non-modifying operations
    • Modifying operations
  • 15. Regular Expressions
    • Character Types
    • Regular Expression Objects
    • The Search Result match_results
    • Match
    • Search
    • Replace
    • Format
    • Repeated Search
  • 16. Input and Output Streams
    • Hierarchy
    • Input and Output Functions
    • Streams
    • User-defined Data Types
  • 17. Formatting Library
    • Formatting Functions
    • Syntax
    • Format specification
    • User-defined formatter
  • 18. Filesystem
    • Classes
    • Non-member functions
    • File types
  • 19. Multithreading
    • Memory Model
    • Atomic Data Types
    • Threads
    • Stop Token
    • Shared Variables
    • Thread Local Data
    • Condition Variables
    • Semaphores
    • Coordination Types
    • Tasks
  • 20. Coroutines
    • Awaitables
    • An Infinite Data Stream with co_yield
  • Index

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub