what is an algorithm in terms of STL?



what is an algorithm in terms of STL?..

Answer / bayo

In STL algorithms provide a set of functions to modify,
interpret and analyze the data in container objects.
Iterators provide the connection between the
containers and the algorithms. The generic algorithms take
iterators as arguments to access data in container
objects. Since they work on iterators, they have
independence from the container type.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More STL Interview Questions

if x<>=z then statement end what is the cyclomatic complexity

5 Answers  


In what cases using of a 'template' is a better approach then using of a 'base class'?

6 Answers   Lucent, Mind Tree, Wipro,


why does the execution of a c++ program start with main()???

11 Answers  


Is there any error below, its a code to delete all entires from a map #include <map> #include iostream.h int main() { int i =0; map <int, char> TestMap; while(i<3) { TesMap.insert(TestMap::value_type(i,Test)); i++; } typedef map<int, char> :: iterator mapIter =TestMap.begin(); if(mapIter!=TestMap.end()) { TestMap.erase(mapItrer); ++mapIter; } return 0; }

0 Answers  


When did c++ add stl?

0 Answers  






What is the underlying datastructure of map?

5 Answers   BIA, Siemens,


What is the stl, standard template library?

0 Answers  


What is Constructor

14 Answers   Angel Broking,


What is meant by stl in c++?

0 Answers  


what is an algorithm in terms of STL?

1 Answers   Lucent, Wipro,


what are you now programming Languages C+

1 Answers   HCL,


How is stl different from c++ standard library?

0 Answers  


Categories