0 votes
in C Plus Plus by

What is a Standard Template Library (STL)? What are the various types of STL Containers?

1 Answer

0 votes
by

A Standard Template Library (STL) is a library of container templates approved by the ANSI committee for inclusion in the standard C++ specification. We have various types of STL containers depending on how they store the elements.

Queue, Stack – These are the same as traditional queue and stack and are called adaptive containers.

Set, Map – These are basically containers that have key/value pairs and are associative in nature.

Vector, deque – These are sequential in nature and have similarities to arrays.

Related questions

0 votes
asked Dec 2, 2021 in Cloud Computing by DavidAnderson
0 votes
asked Mar 5, 2021 in D Programming by SakshiSharma
...