Get ready for Ignite with 40% off every Microsoft print & eBook >>

Using the C++ Standard Template Libraries

Authors: Horton, Ivor

Download source code
    • 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 this book

eBook 36,99 €
price for Spain (gross)
  • ISBN 978-1-4842-0004-9
  • Digitally watermarked, DRM-free
  • Included format: PDF, EPUB
  • ebooks can be used on all reading devices
  • Immediate eBook download after purchase
Softcover 46,79 €
price for Spain (gross)
  • ISBN 978-1-4842-0005-6
  • Free shipping for individuals worldwide
  • Usually dispatched within 3 to 5 business days.
  • The final prices may differ from the prices shown due to specifics of VAT rules
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.
  • Understand the different types of containers that are available and what they are used for.
  • How to define your own class types to meet the requirements of use with containers.
  • What iterators are, the characteristics of the various types of iterators, and how they allow algorithms to be applied to the data in different types of container.
  • How you can define your own iterator types.
  • What the templates that define algorithms do, and how you apply them to data stored in containers and arrays.
  • How to access hardware clocks and use them for timing execution.
  • How to use the templates available for compute-intensive numerical data processing.
  • How to create and use pseudo-random number generators with distribution objects.
  • About the authors

    Ivor Horton is self-employed in consultancy and writes programming tutorials. He worked for IBM for many years and holds a bachelor's degree, with honors, in mathematics. Horton's experience at IBM includes programming in most languages (like assembler and high-level languages on a variety of machines), real-time programming, and designing and implementing real-time closed loop industrial control systems. He has extensive experience teaching programming to engineers and scientists (Fortran, PL/1, APL, etc.). Horton is an expert in mechanical, process, and electronic CAD systems; mechanical CAM systems; and DNC/CNC systems.

    Table of contents (10 chapters)

    Buy this book

    eBook 36,99 €
    price for Spain (gross)
    • ISBN 978-1-4842-0004-9
    • Digitally watermarked, DRM-free
    • Included format: PDF, EPUB
    • ebooks can be used on all reading devices
    • Immediate eBook download after purchase
    Softcover 46,79 €
    price for Spain (gross)
    • ISBN 978-1-4842-0005-6
    • Free shipping for individuals worldwide
    • Usually dispatched within 3 to 5 business days.
    • The final prices may differ from the prices shown due to specifics of VAT rules

    Services for this book

    Loading...

    Bibliographic Information

    Bibliographic Information
    Book Title
    Using the C++ Standard Template Libraries
    Authors
    Copyright
    2015
    Publisher
    Apress
    Copyright Holder
    Ivor Horton
    eBook ISBN
    978-1-4842-0004-9
    DOI
    10.1007/978-1-4842-0004-9
    Softcover ISBN
    978-1-4842-0005-6
    Edition Number
    1
    Number of Pages
    XXV, 489
    Number of Illustrations and Tables
    68 b/w illustrations
    Topics