STL Question

W

Walt L. Williams

Greetings

I am a CS student. I ran into the term
"STL" receintly. What is STL?
 
W

Walt L. Williams

Walt said:
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?)
 
T

Thomas Matthews

Walt said:
Greetings

I am a CS student. I ran into the term
"STL" receintly. What is STL?

Standard Template Library.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library
 
T

TJ

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
 
J

Jigar Mehta

Can you please give an example of STL ?? which class (taking for
example) are included in STL ?? Is CList, CArray included in STL ???
 
S

Shezan Baig

Jigar said:
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-
 
D

Dietmar Kuehl

Jigar said:
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.
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::eek:stream_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()'
Is CList, CArray included in STL ???

No. There is a list and a choice of random access containers but
with a rather different interface.
 
I

Ioannis Vranos

Walt said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top