Explain container class and its types in C++.
Page 1 of 1
Explain container class and its types in C++.
A container stores many entities and provide sequential or direct access to them. List, vector and strings are such containers in standard template library. The string class is a container that holds chars. All container classes access the contained elements safely and efficiently by using iterators. Container class is a class that hold group of same or mixed objects in memory. It can be heterogeneous and homogeneous. Heterogeneous container class can hold mixed objects in memory whereas when it is holding same objects, it is called as homogeneous container class.
Similar topics
» What is a container class? What are the types of container classes?
» Explain container class.
» What is container class? Explain containers of pointer.
» Explain the different types of errors in PHP.
» Explain different types of iterators, i.e. input_iterator, output_iterator etc.
» Explain container class.
» What is container class? Explain containers of pointer.
» Explain the different types of errors in PHP.
» Explain different types of iterators, i.e. input_iterator, output_iterator etc.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum