SGI Logo

Download STL source code

Last updated: 8-June-00

The STL was developed on SGI MIPSproTM C++ 7.0, 7.1, 7.2, and 7.2.1. If you are using the 7.0 compiler, you must compile using either the -n32 or the -64 flag; if you are using 7.1 or later, you may use -o32, -n32, or -64. The STL has also been tested on Microsoft Visual C++ 5.0, on g++ 2.8.1, and on recent egcs snapshots. All of the STL except for the <string>, <bitset>, and <valarray> headers has also been tested on Borland 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. (Note that v3 has many more header files than v1 and v2 did, because it provides both old-style and new-style header names. Many of the files in v3 are very short, and do little other than forwarding.)

View individual files

algo.h hash_map.h numeric stdexcept stl_heap.h stl_slist.h
algobase.h hash_set pair.h stl_algo.h stl_iterator.h stl_stack.h
algorithm hash_set.h pthread_alloc stl_algobase.h stl_iterator_base.h stl_string_fwd.h
alloc.h hashtable.h pthread_alloc.h stl_alloc.h stl_list.h stl_tempbuf.h
bitset heap.h queue stl_bvector.h stl_map.h stl_threads.h
bvector.h iterator rope stl_config.h stl_multimap.h stl_tree.h
char_traits.h iterator.h rope.h stl_construct.h stl_multiset.h stl_uninitialized.h
concept_checks.h limits ropeimpl.h stl_ctraits_fns.h stl_numeric.h stl_vector.h
container_concepts.h list sequence_concepts.h stl_deque.h stl_pair.h string
defalloc.h list.h set stl_exception.h stl_queue.h tempbuf.h
deque map set.h stl_function.h stl_range_errors.h tree.h
deque.h map.h slist stl_hash_fun.h stl_raw_storage_iter.h type_traits.h
function.h memory slist.h stl_hash_map.h stl_relops.h utility
functional multimap.h stack stl_hash_set.h stl_rope.h valarray
hash_map multiset.h stack.h stl_hashtable.h stl_set.h vector

Download the entire STL (v3.3) as a tar file

Download the entire STL (v3.3) as a zip file

Download the entire STL (v3.3) as a tar file compressed with gzip


Download the entire STL (v3.2) as a tar file

Download the entire STL (v3.2) as a zip file

Download the entire STL (v3.2) as a tar file compressed with gzip


Download the entire STL (v3.13) as a tar file

Download the entire STL (v3.13) as a zip file

Download the entire STL (v3.13) as a tar file compressed with gzip


Download the entire STL (v3.12) as a tar file

Download the entire STL (v3.12) as a zip file

Download the entire STL (v3.12) as a tar file compressed with gzip


Download the entire STL (v3.11) as a tar file

Download the entire STL (v3.11) as a zip file

Download the entire STL (v3.11) as a tar file compressed with gzip


Download the entire STL (v3.0) as a tar file

Download the entire STL (v3.0) as a zip file

Download the entire STL (v3.0) as a tar file compressed with gzip


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

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

Download the entire STL (v2.03) 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-1999
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.

STL Main Page

Contact Us | Site Map | Trademarks | Privacy | Using this site means you accept its Terms of Use
Copyright © 1993-2006 Silicon Graphics, Inc. All rights reserved.