Book description
Using the C++ Standard Template Libraries is a contemporary treatment that teaches the generic programming capabilities that the C++ 14 Standard Library provides. In this book, author Ivor Horton explains what the class and function templates available with C++ 14 do, and how to use them in a practical context.
You'll learn how to create containers, and how iterators are used with them to access, modify, and extend the data elements they contain. You'll also learn about stream iterators that can transfer data between containers and streams, including file streams. The function templates that define algorithms are explained in detail, and you'll learn how to pass function objects or lambda expressions to them to customize their behavior. Many working examples are included to demonstrate how to apply the algorithms with different types of containers.
After reading this book, you will understand the scope and power of the templates that the C++ 14 Standard Library includes and how these can greatly reduce the coding and development time for many applications. You'll be able to combine the class and function templates to great effect in dealing with real-world problems.
The templates in the Standard Library provide you as a C++ programmer with a comprehensive set of efficiently implemented generic programming tools that you can use for most types of application.
Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Techincal reviewer
- Acknowledgments
- Introduction
- Chapter 1: Introducing the Standard Template Library
- Chapter 2: Using Sequence Containers
- Chapter 3: Container Adapters
- Chapter 4: Map Containers
- Chapter 5: Working with Sets
- Chapter 6: Sorting, Merging, Searching, and Partitioning
-
Chapter 7: More Algorithms
- Testing Element Properties
- Comparing Ranges
- Copying a Range
- Copying and Reversing the Order of Elements
- Copying a Range Removing Adjacent Duplicates
- Removing Adjacent Duplicates from a Range
- Rotating Ranges
- Moving a Range
- Removing Elements from a Range
- Setting and Modifying Elements in a Range
- Applying Algorithms
- Summary
- Chapter 8: Generating Random Numbers
- Chapter 9: Stream Operations
- Chapter 10: Working with Numerical, Time, and Complex Data
- Index
Product information
- Title: Using the C++ Standard Template Libraries
- Author(s):
- Release date: October 2015
- Publisher(s): Apress
- ISBN: 9781484200049
You might also like
book
C++ Standard Library Quick Reference
This quick reference is a condensed reference guide to the essential data structures, algorithms, and functions …
book
C++ Quick Syntax Reference
The C++ Quick Syntax Reference is a condensed code and syntax reference to the C++ programming …
book
Learning Boost C++ Libraries
Solve practical programming problems using powerful, portable, and expressive libraries from Boost In Detail Filled with …
book
C++ 14 Quick Syntax Reference, Second Edition
This updated handy quick C++ 14 guide is a condensed code and syntax reference based on …