STL Quiz Containers

What are the containers?

Containers contain set of Iterators

Containers stores all the algorithms

Containers store objects and data

Containers contain overloaded functions

My answer is Containers contain overloaded functions

do u need to know what containers are
u have tried answering ur own answer…

Containers are like Stack, Queue which contains in built functions. But it’s wrong.

http://www.cplusplus.com/reference/stl/

What will be the answer of this question?

And what is mean by overloaded functions?

Function overloading is a feature in C++ where two or more functions can have the same name but different parameters.
image

A container is a holder object that stores a collection of other objects (its elements). They are implemented as class templates, which allows a great flexibility in the types supported as elements.

The container manages the storage space for its elements and provides member functions to access them, either directly or through iterators (reference objects with similar properties to pointers).

Containers replicate structures very commonly used in programming: dynamic arrays ([vector], queues , stacks, heaps ([priority_queue],linked lists ([list]), trees ([set]), associative arrays ([map])…

So Containers stores objects and data and functions. It’s like a class.

yes its basically a templated class with has functionality and functions defined and we can use there objects

okay. Got it…

1 Like