The C++ Standard Library
The C++ Standard Library
Minimum price
Suggested price
The C++ Standard Library

This book is 100% complete

Completed on 2018-09-02

About the Book

The C++ Standard Library is a quick reference to the standard library of the current C++17 standard.

The Goal

The goal of this quick reference is to provide a concise reference of the C++ standard library. This book assumes that you are familiar with C++. If so you will get the most benefit out of this book. If C++ is totally 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 this book.

This book gives you, in addition, more than 100 running code examples to the code snippets, I presented in the book. Therefore you can combine the theory with the practices and get the most of it.

A Lot of Thanks

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

About the Author

Rainer Grimm

Rainer Grimm

Bundles that include this book

The C++ Standard Library
Concurrency with Modern C++
Suggested Price
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.

Table of Contents

  • Reader Testimonials
    • English Edition
    • German Edition
  • Introduction
    • Index
    • Conventions
    • Source Examples
    • Source Code
    • Value versus Object
    • Acknowledgements
    • Further Information
    • C++ versus C++11
  • 1. The Standard Library
    • The History
    • Overview
    • Application 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
  • 3. Interface of All Containers
    • Create and delete
    • Size
    • Access
    • Assign and Swap
    • Compare
  • 4. Sequential Containers
    • Arrays
    • Vectors
    • Deques
    • Lists
    • Forward Lists
  • 5. Associative Container
    • Overview
    • Ordered Associative Container
    • Unordered Associative Container
  • 6. Adaptors for Containers
    • Stack
    • Queue
    • Priority Queue
  • 7. Iterators
    • Categories
    • Iterator Creation
    • Useful Functions
    • Adaptors
  • 8. Callable Units
    • Functions
    • Function Objects
    • Lambda Functions
  • 9. 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
  • 10. Numeric
    • Random Numbers
    • Numeric Functions Inherited from C
  • 11. Strings
    • Create and Delete
    • Conversion Between C++ and C Strings
    • Size versus Capacity
    • Comparison
    • String Concatenation
    • Element Access
    • Input and Output
    • Search
    • Modifying Operations
    • Numeric Conversions
  • 12. String Views
    • Create and initialise
    • Non-modifying operations
    • Modifying operations
  • 13. Regular Expressions
    • Character Types
    • Regular Expression Objects
    • The Search Result match_results
    • Match
    • Search
    • Replace
    • Format
    • Repeated Search
  • 14. Input and Output Streams
    • Hierarchy
    • Input and Output Functions
    • Streams
    • User-defined Data Types
  • 15. Filesystem library
    • Classes
    • Non-member functions
    • File types
  • 16. Multithreading
    • Memory Model
    • Atomic Data Types
    • Threads
    • Shared Variables
    • Thread Local Data
    • Condition Variables
    • Tasks
  • Index

The Leanpub 45-day 100% Happiness Guarantee

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

See full terms...

Write and Publish on Leanpub

Authors, publishers and universities use Leanpub to publish amazing in-progress and completed books and courses, just like this one. You can use Leanpub to write, publish and sell your book or course as well! 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. It really is that easy.

Learn more about writing on Leanpub