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 Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s