When should we use container classes instead of arrays? - C++

When should we use container classes instead of arrays?

- It is advisable to use container classes of the STL so that you don’t have to go through the pain of writing the entire code for handling collisions, making sure its working well, testing it repeatedly with an overhead of time consumption.
- Suppose you have some data that has values associated with strings and its fields consist of grades> in this situation you can directly use hash table instead of having it created by yourself.
Difference between a homogeneous and a heterogeneous container
Difference between a homogeneous and a heterogeneous container - When a container class contains a group of mixed objects, the container is called a heterogeneous container....
What is a container class? What are the types of container classes?
What is a container class? What are the types of container classes? - A class is said to be a container class which is utilized for the purpose of holding objects in memory or persistent media....
What are the different types of inheritance?
Different types of inheritance - Single Inheritance, Multiple Inheritance, Hierarchical inheritance, Multilevel inheritance...
Post your comment