This is the code repository for C++ Standard Template Library in Practice [Video], published by Packt. It contains all the supporting project files necessary to work through the video course from start to finish.
C++ is one of the most widely used programming languages. Fast, efficient, and flexible, it is used to solve many problems. In particular, it is the Standard Template Library (STL) that gives C++ its power. In this course, we show you how. Using real-world examples, we focus on how STL handles and manipulates data. We examine containers and iterators, and how data can be transformed into meaningful information using algorithms. There is coverage of I/O streams, strings and numerical methods, and how performance can be optimized through careful consideration of memory allocation and manipulation. We also demonstrate how multitasking and shared data is handled through concurrency and parallelism classes and utilities. By the end of the course, you will understand the newer aspects of C++ STL and will be able to overcome tasks that are time-consuming or would break your stride while developing.
- Efficient and effective ways to store data using STL containers
- Manage application performance using STL memory allocation classes, and enhance these classes by developing your allocation routines
- How data is structured and how the structure can be traversed using iterators
- How algorithms are used to transform data into useful and meaningful information
- Multitasking and managing shared data using concurrency and parallelism
- Managing input and output (I/O) using streams and the role of stream buffers
- How the STL has standardized common tasks
To get the most out of the examples and development experience, it is recommended you to have a relatively newer development device with at least the following things:
CPU: 4 cores Memory: 8 GB RAM Disk space: 40 GB The examples (with a few exceptions) have been designed to run on both macOS and Windows PC devices. To follow along you should have the following software installed:
PC: Visual Studio 2015 Community or better macOS: XCode 8.x or better. Other software needed will be described as required.