| 1 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>4. C++ Standard Template Library</title><link rel="stylesheet" href="../xml/XSLCustomizationLayer/G4HTMLStylesheet.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.71.1"><link rel="start" href="index.html" title="Geant4 User's Guide for Application Developers"><link rel="up" href="apa.html" title="Appendix . Appendix"><link rel="prev" href="apas03.html" title="3. CLHEP Foundation Library"><link rel="next" href="apas05.html" title="5. Makefiles and Environment Variables"><script language="JavaScript">
|
|---|
| 2 | function remote_win(fName)
|
|---|
| 3 | {
|
|---|
| 4 | var url = "AllResources/Detector/geometry.src/" + fName;
|
|---|
| 5 | RemoteWin=window.open(url,"","resizable=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=520,height=520")
|
|---|
| 6 | RemoteWin.creator=self
|
|---|
| 7 | }
|
|---|
| 8 | </script></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">4.
|
|---|
| 9 | C++ Standard Template Library
|
|---|
| 10 | </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="apas03.html"><img src="AllResources/IconsGIF/prev.gif" alt="Prev"></a> </td><th width="60%" align="center">Appendix .
|
|---|
| 11 | Appendix
|
|---|
| 12 | </th><td width="20%" align="right"> <a accesskey="n" href="apas05.html"><img src="AllResources/IconsGIF/next.gif" alt="Next"></a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="sect.CppStdTL"></a>4.
|
|---|
| 13 | C++ Standard Template Library
|
|---|
| 14 | </h2></div></div></div><h5><a name="id558043"></a>
|
|---|
| 15 | Overview
|
|---|
| 16 | </h5><p>
|
|---|
| 17 | The Standard Template Library (STL) is a general-purpose library
|
|---|
| 18 | of generic algorithms and data structures. It is part of the C++
|
|---|
| 19 | Standard Library. Nowadays, most compiler vendors include a version
|
|---|
| 20 | on STL in their products, and there are commercial implementations
|
|---|
| 21 | available as well.
|
|---|
| 22 | </p><p>
|
|---|
| 23 | Good books on STL are:
|
|---|
| 24 |
|
|---|
| 25 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 26 | Nicolai M. Josuttis: The C++ Standard Library. A Tutorial and
|
|---|
| 27 | Reference
|
|---|
| 28 | [<span class="citation">
|
|---|
| 29 | <a href="bi01.html#biblio.josuttis1999">
|
|---|
| 30 | Josuttis1999
|
|---|
| 31 | </a>
|
|---|
| 32 | </span>]
|
|---|
| 33 | </p></li><li><p>
|
|---|
| 34 | David R. Musser, Atul Saini: STL Tutorial and Reference Guide /
|
|---|
| 35 | C++ Programming with the Standard Template Library
|
|---|
| 36 | [<span class="citation">
|
|---|
| 37 | <a href="bi01.html#biblio.musser1996">
|
|---|
| 38 | Musser1996
|
|---|
| 39 | </a>
|
|---|
| 40 | </span>]
|
|---|
| 41 | </p></li><li><p>
|
|---|
| 42 | Scott Meyers: Effective STL
|
|---|
| 43 | [<span class="citation">
|
|---|
| 44 | <a href="bi01.html#biblio.meyers2001">
|
|---|
| 45 | Meyers2001
|
|---|
| 46 | </a>
|
|---|
| 47 | </span>]
|
|---|
| 48 | </p></li></ul></div><p>
|
|---|
| 49 | </p><p>
|
|---|
| 50 | Resources available online include the
|
|---|
| 51 | reference of the SGI implementation:
|
|---|
| 52 |
|
|---|
| 53 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 54 | <a href="http://www.sgi.com/tech/stl/" target="_top">
|
|---|
| 55 | SGI STL homepage
|
|---|
| 56 | </a>
|
|---|
| 57 | , this is the basis of the native egcs STL implementation.
|
|---|
| 58 | </p></li></ul></div><p>
|
|---|
| 59 | </p><h5><a name="id558491"></a>
|
|---|
| 60 | STL in Geant4
|
|---|
| 61 | </h5><p>
|
|---|
| 62 | Since release 0.1, Geant4 supports STL, the Standard Template
|
|---|
| 63 | Library. From release 1.0 of Geant4, STL is required.
|
|---|
| 64 | </p><p>
|
|---|
| 65 | <span class="emphasis"><em>Native</em></span> implementations of STL are foreseen on
|
|---|
| 66 | all supported platforms.
|
|---|
| 67 | </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="apas03.html"><img src="AllResources/IconsGIF/prev.gif" alt="Prev"></a> </td><td width="20%" align="center"><a accesskey="u" href="apa.html"><img src="AllResources/IconsGIF/up.gif" alt="Up"></a></td><td width="40%" align="right"> <a accesskey="n" href="apas05.html"><img src="AllResources/IconsGIF/next.gif" alt="Next"></a></td></tr><tr><td width="40%" align="left" valign="top">3.
|
|---|
| 68 | CLHEP Foundation Library
|
|---|
| 69 | </td><td width="20%" align="center"><a accesskey="h" href="index.html"><img src="AllResources/IconsGIF/home.gif" alt="Home"></a></td><td width="40%" align="right" valign="top"> 5.
|
|---|
| 70 | Makefiles and Environment Variables
|
|---|
| 71 | </td></tr></table></div></body></html>
|
|---|