What is the STL?
Answers were Sorted based on User's Feedback
Answer / saroj das ,balsore
C++ Standard Template Library
The C++ STL (Standard Template Library) is a generic
collection of class templates and algorithms that allow
programmers to easily implement standard data structures
like queues, lists, and stacks.
The C++ STL provides programmers with the following
constructs, grouped into three categories:
* Sequences
o C++ Vectors
o C++ Lists
o C++ Double-Ended Queues
* Container Adapters
o C++ Stacks
o C++ Queues
o C++ Priority Queues
* Associative Containers
o C++ Bitsets
o C++ Maps
o C++ Multimaps
o C++ Sets
o C++ Multisets
The idea behind the C++ STL is that the hard part of using
complex data structures has already been completed. If a
programmer would like to use a stack of integers, all that
she has to do is use this code:
stack<int> myStack;
With minimal effort, she can now push() and pop() integers
onto this stack. Through the magic of C++ Templates, she
could specify any data type, not just integers. The STL
Stack class will provide generic functionality of a stack,
regardless of the data in the stack.
| Is This Answer Correct ? | 16 Yes | 0 No |
Standard Tessellation Language - a polygonal model format
that is used for rapid prototyping
| Is This Answer Correct ? | 1 Yes | 13 No |
what are you now programming Languages C+
write a piece of c++ code which allocate memory to the 50 object of type CObj
In what cases using of a 'template' is a better approach then using of a 'base class'?
6 Answers Lucent, Mind Tree, Wipro,
how to get the sum of two integers?
What does stl stand for in basketball?
What is stl stack?
what is template and type convertion
Find the error in the following program struct point {struct point *next; int data; } x; main() {int...data; } x; main() {int i; for(x=p;x!=0;) x=x->next,x++; freelist(x); } freelist(x) {free(x); return }
what's the difference between function overloading and function overiding?
what is a template?
2 Answers Amazon, BITS, IBS, Wipro,
Give the output of the following program main() {int ret; ret=fork();ret=fork();ret=fork();ret=fork(); if(!ret) printf("sun"); else printf("solaris");
What is the STL?