Basics of STL in C++ (Standard Template Library)
Creating production ready data structures that manage collections of objects and utilities to sort, search and otherwise manipulate elements in those collections is a project in itself that most developers don’t have time to undertake. You need to spend your time writing the business logic for your application.
C++ provides several collection classes and algorithms as part of the standard library that you can use to manage your objects. This section of the standard library is often referred to as the STL.
You will begin by exploring the different container types available to gain an understanding of which one best fits your needs. After that you will explore iterators which provide the glue between the containers and the algorithms. Then you will work with the non-modifying and mutating operations (algorithms) to access and manipulate the data in your collections.
After completing this course, you will be able to:
- Migrate code to use standard containers.
- Choose the correct STL container.
- Replace raw loops with more efficient and descriptive algorithms.
- Search, sort, partition, copy and transform elements in containers with algorithms.