Authors:
Using the C++ Standard Template Libraries is a contemporary treatment that teaches you the latest C++ 14 APIs, libraries and extensions.
Ivor Horton explains what the STL is and how to use it with your C++ applications.
You'll learn how to use containers and iterators, as well as how to define, create and apply algorithms.
Furthermore, you'll learn about function objects and allocators and how to use them.
Buy it now
Buying options
Tax calculation will be finalised at checkout
Other ways to access
This is a preview of subscription content, log in via an institution to check for access.
Table of contents (10 chapters)
-
Front Matter
-
Back Matter
About this book
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.
- How to use Standard Library templates with your C++ applications.
About the author
Bibliographic Information
Book Title: Using the C++ Standard Template Libraries
Authors: Ivor Horton
DOI: https://doi.org/10.1007/978-1-4842-0004-9
Publisher: Apress Berkeley, CA
eBook Packages: Professional and Applied Computing, Professional and Applied Computing (R0), Apress Access Books
Copyright Information: Ivor Horton 2015
Softcover ISBN: 978-1-4842-0005-6Published: 29 September 2015
eBook ISBN: 978-1-4842-0004-9Published: 11 October 2015
Edition Number: 1
Number of Pages: XXV, 489
Number of Illustrations: 68 b/w illustrations
Topics: Programming Languages, Compilers, Interpreters, Software Engineering/Programming and Operating Systems