Silicon Graphics, Inc.

Download STL source code

Last updated: 7-31-97

The STL was developed on SGI MIPSproTM C++ 7.0 and MIPSpro C++ 7.1. If you are using the 7.0 compiler, you must compile using either the -n32 or the -64 flag; if you are using the 7.1 compiler, you may use -o32, -n32, or -64. The STL has also been tested on Microsoft Visual C++ 5.0, and on Borland C++ 5.02.

It should not be difficult to use the STL with other compilers that have good support for templates, especially compilers that use the EDG front end.

This distribution of the STL consists entirely of header files: there is no need to link to any library files. You can view or download a header file individually, or you can download all of them as a tar or zip file.

View individual files

algo.h hash_map.h multimap.h slist.h
algobase.h hash_set.h multiset.h stack.h
alloc.h hashtable.h pair.h stl_config.h
bvector.h heap.h pthread_alloc.h tempbuf.h
defalloc.h iterator.h rope.h tree.h
deque.h list.h ropeimpl.h type_traits.h
function.h map.h set.h vector.h

Download the entire STL (v2.02) as a tar file

Download the entire STL (v2.02) as a zip file

Download the entire STL (v2.02) as a tar file compressed with gzip


Download the STL documentation

Download the entire STL documentation as a tar file

Download the entire STL documentation as a zip file

Download the entire STL documentation as a tar file compressed with gzip


SGI is also providing a version of the STL that has been modified so that it can be used with compilers that do not support default template parameters. It has been tested using Borland C++ 5.01 and Microsoft Visual C++ 4.2.

Note: you do not need this restricted version if you are using Microsoft Visual C++ 5.0 or Borland C++ 5.02, both of which are able to compile the regular version. Now that the ordinary version of the STL can be used with both Microsoft and Borland compilers, SGI is no longer updating the restricted version. It will remain available on this WWW site, but new features will not be added to it.

Download the entire STL (for older Microsoft and Borland compilers) as a tar file

Download the entire STL (for older Microsoft and Borland compilers) as a zip file

Download the entire STL (for older Microsoft and Borland compilers) as a tar file compressed with gzip


Copyright © 1996, 1997
Silicon Graphics Computer Systems, Inc.

Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appears in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Silicon Graphics makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.

Copyright © 1994
Hewlett-Packard Company

Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appears in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Hewlett-Packard Company makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.


[Silicon Surf] [STL Home]
Copyright © 1996 Silicon Graphics, Inc. All Rights Reserved. TrademarkInformation webmaster@www.sgi.com