From: "Martin Ambuhl" Newsgroups: comp.os.msdos.djgpp Subject: Re: Purposes of STL Date: Tue, 17 Mar 1998 19:24:07 -0500 Organization: Honors Bridge Club Lines: 28 Message-ID: <6en46e$66l@news-central.tiac.net> References: <350DF654 DOT 74F8B89A AT ms1 DOT accmail DOT com DOT tw> NNTP-Posting-Host: p16.tc2.newyo.ny.tiac.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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.