Download STL source code

Last updated: 2-Feb-98

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

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


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.


Copyright © 1996 Silicon Graphics, Inc.
STL
© Copyright 1997-1998 CodeGuru