Containers in STL – C++

1) Sequential Containers

It implements data structure which can be accessed in a sequential manner.

  • vector
  • list
  • deque
  • arrays
  • forward_list

2) Container Adaptors

It provides a different interface for sequential containers.

  • queue
  • priority_queue
  • stack

3) Associative Containers

It implements sorted data structures that can be quickly searched(O(logn) time complexity.

  • set
  • multiset
  • map
  • multimap

4) Unordered Associative Containers

It implements unordered data structure that can be quickly searched.

  • unordered_set
  • unordered_multiset
  • unordered_map
  • unordered_multimap

Leave a Comment

Your email address will not be published. Required fields are marked *