Mail Archives: djgpp/1998/03/17/19:34:12
VAMPYR wrote in message <350DF654 DOT 74F8B89A AT ms1 DOT accmail DOT com DOT tw>...
|In C++, what are the purposes of STL?
|I just know it can provides a list service(this can be used
|in game programming).
Since I do no game programming, I have no idea what would be
useful to you there. But...
although this is a comp.lang.c++ question,
not for comp.os.ms.djgpp, a short answer follows. For a
more complete answer, go to a bookstore and check one
of the proliferating STL texts.
STL is a collection of generic data structures and algorithms
written in C++. There are many such libraries, but STL has
been acceptable as a standard. STL generalizes pointers
to a more flexible form called iterators. This means STL
algorithms can be used on regular arrays as well as the STL
container types. The algorithms are usually more efficient
than many home-rolled ones. STL provides 'adaptors' which
provide ways to use data structures with algorithms
implemented for other. STL provides generic algorithms.
In sum, you need to use STL to discover what it can do
for you.
- Raw text -