Basics of STL in C++ (Standard Template Library)

0% of 5 hours and 45 minutes completed.

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.
There are no resources available.
0 attachments
0%
Manage in-memory data with STL sequence containers
1 hour 34 minutes 8 Activities: Article  (7)  |  Lab  (1)  |  Video  (0)
0%
Manage in-memory data with STL associative containers
1 hour 12 minutes 6 Activities: Article  (3)  |  Lab  (3)  |  Video  (0)
0%
Generically access STL collections through iterators
1 hour 10 minutes 7 Activities: Article  (1)  |  Lab  (3)  |  Video  (3)
0%
Manipulate STL collections with algorithms
1 hour 48 minutes 8 Activities: Article  (2)  |  Lab  (3)  |  Video  (3)
0%
Copyright
1 minute 1 Activity: Article  (1)  |  Lab  (0)  |  Video  (0)