KnowledgeCity

C++ STL Containers

This module is about containers that are provided by the Standard Template Library. The module introduces sequential and associative containers. The module will discuss in some detail the containers such as vector, list, queue, and deque.
Preview the first lesson free — get full access to all 12 lessons.

To view this video please enable JavaScript.

Course: On-Demand
Advanced  Provider Mikhail Veygman  12 Lessons ·  47m  in Arabic, German, English, Spanish, French, Portuguese, Chinese Simplified 

What You'll Learn

  • Use STL sequence containers including vectors, queue, deque, stack, and list
  • Compare list versus vector to choose the right sequence container
  • Apply associative containers such as sets, multisets (bags), and maps
  • Work with unordered or hash maps and contrast maps versus hash maps
  • Traverse STL containers using iterators

Key Takeaways

  • The course covers STL sequence containers, including vectors, queue, deque, stack, and list.
  • It addresses associative containers such as sets, multisets (bags), and maps.
  • It distinguishes between maps and unordered or hash maps.
  • It teaches the use of iterators to work with containers.
  • Topics build on C++ fundamentals and the Standard Template Library (STL).

Frequently Asked Questions

What containers does this course cover?

It covers sequence containers such as vectors, queue, deque, stack, and list, as well as associative containers including sets, multisets (bags), maps, and unordered or hash maps.

Does the course explain the difference between similar containers?

Yes. It includes lessons comparing list versus vector and maps versus hash maps.

What skills does this course build?

It develops C++ Fundamentals, C++ Concepts, C++ Modules, Function Module, the Standard Template Library (STL), and Template Metaprogramming.

How do you access elements across these containers?

The course includes a lesson on iterators, which are used to traverse the containers.