| View previous topic :: View next topic |
| Author |
Message |
Walt L. Williams Guest
|
Posted: Fri Jan 28, 2005 12:43 pm Post subject: STL Question |
|
|
Greetings
I am a CS student. I ran into the term
"STL" receintly. What is STL?
--
Walt L. Williams
|
|
| Back to top |
|
 |
Walt L. Williams Guest
|
Posted: Fri Jan 28, 2005 12:47 pm Post subject: Re: STL Question |
|
|
Walt L. Williams wrote:
| Quote: | Greetings
I am a CS student. I ran into the term
"STL" receintly. What is STL?
Holy smokes "receintly" how about "recently" |
(This is what a spell checker is for; right?)
--
Walt L. Williams
|
|
| Back to top |
|
 |
Thomas Matthews Guest
|
|
| Back to top |
|
 |
TJ Guest
|
Posted: Fri Jan 28, 2005 12:52 pm Post subject: Re: STL Question |
|
|
The first link I got when I googled "STL" is this
http://www.sgi.com/tech/stl/
This is a good start for STL.
I would say it is the best and optimized template library. It is fun
learning and using STL. Hope you would enjoy learning.
There are lot other sites that would help you learn STL. MSDN is also
a good reference.
All the best.
-TJ
|
|
| Back to top |
|
 |
Jigar Mehta Guest
|
Posted: Fri Jan 28, 2005 12:56 pm Post subject: Re: STL Question |
|
|
Can you please give an example of STL ?? which class (taking for
example) are included in STL ?? Is CList, CArray included in STL ???
|
|
| Back to top |
|
 |
Shezan Baig Guest
|
Posted: Fri Jan 28, 2005 2:53 pm Post subject: Re: STL Question |
|
|
Jigar Mehta wrote:
| Quote: | Can you please give an example of STL ?? which class (taking for
example) are included in STL ?? Is CList, CArray included in STL ???
|
Look at the SGI link mentioned earlier. Look at the "Table of
Contents", it has all you need to know there.
No, CList and CArray are from MFC, not STL.
-shez-
|
|
| Back to top |
|
 |
Dietmar Kuehl Guest
|
Posted: Fri Jan 28, 2005 2:56 pm Post subject: Re: STL Question |
|
|
Jigar Mehta wrote:
| Quote: | Can you please give an example of STL ??
|
What do you mean with "example of STL"? The "Standard Template
Library", "STL" for short, is a library as specified by a paper
by Alexander Stepanov and Meng Lee (see
<http://www.hpl.hp.com/techreports/95/HPL-95-11.html>) which
became an accepted proposal for the standard C++ lirary.
Historically, the facilities described in the paper are what
compromises the "STL". The term "STL" is today often confused
with the standard C++ library.
| Quote: | which class (taking for example) are included in STL ??
|
Actually, there are only very few classes included in the STL
and those which are are essentially rather technical class you
are probably not really interested in. However, the STL includes
a fair amount of class and function templates plus, much more
important than either of those, a set of concepts (in the paper
the concepts were characterized through sets of requirements and
I think the term "concept" was not used at that time). The class
templates fall into several categories. There are class
for
- containers, e.g. 'std::vector', 'std::list', 'std::map'
- iterators, e.g. 'std::reverse_iterator', 'std::ostream_iterator'
- functors, e.g. 'std::less', 'std::plus'
- traits, e.g. 'std::iterator_traits'
There are function templates for
- general algorithms, e.g. 'std::copy()', 'std::sort()'
- numeric algorithms, e.g. 'std::accumulate()'
- simplified object creation, e.g. 'std::back_inserter()'
| Quote: | Is CList, CArray included in STL ???
|
No. There is a list and a choice of random access containers but
with a rather different interface.
--
<mailto:dietmar_kuehl (AT) yahoo (DOT) com> <http://www.dietmar-kuehl.de/>
<http://www.contendix.com> - Software Development & Consulting
|
|
| Back to top |
|
 |
Thomas Matthews Guest
|
|
| Back to top |
|
 |
Ioannis Vranos Guest
|
Posted: Sat Jan 29, 2005 1:05 am Post subject: Re: STL Question |
|
|
Walt L. Williams wrote:
| Quote: | Greetings
I am a CS student. I ran into the term
"STL" receintly. What is STL?
|
A subset of the standard library (in fact the largest part of it),
consisting of templates.
--
Ioannis Vranos
http://www23.brinkster.com/noicys
|
|
| Back to top |
|
 |
Jigar Mehta Guest
|
Posted: Sat Jan 29, 2005 4:21 am Post subject: Re: STL Question |
|
|
Thanks for satisfcatory reply...
|
|
| Back to top |
|
 |
Walt L. Williams Guest
|
Posted: Fri Feb 18, 2005 2:10 pm Post subject: Re: STL Question |
|
|
Actually I was previously advised not to do that.
That I should post to each group separately.
W.
Thomas Matthews wrote:
| Quote: | Walt L. Williams wrote:
Greetings
I am a CS student. I ran into the term
"STL" receintly. What is STL?
Walt,
When posting to multiple groups, please put
each group into the "To:" field instead of
posting separately to each group. This will
allow you and everybody to see all of the
discussion with out having to bounce between
groups.
{Added comp.lang.c++ to show them of the
cross-posting.}
|
--
Walt L. Williams
|
|
| Back to top |
|
 |
|