Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are the types of STL containers?

containers STL types
0
Posted

What are the types of STL containers?

0

This is a tricky question because the answer depends very much on what a STL container definition is. Currently there are two major types of containers defined in the C++ library: sequence containers and associative containers. Sequence containers are: vector deque list Associative containers are: set multiset map and multimap. There are 3 containers adapters: stack queue and priority_queue. The STL has two more data structures that some people argue they might be containers as well: bitset and valarray. There is also the specialization of the vector container for booleans which might not be a container. No hash containers are defined in the current C++ STL standard. However other STL implementation might have some hash based containers (ie STL SGI implementation). The upcoming C++ standard defines among others in TR1 (Technical Report 1) new containers : array unorder_set unordered_multiset unorder_map and unordered_multimap. Most of the TR1 is implemented in the gcc compiler. Dinkumw

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123