Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/ptr_container/doc/ptr_map.html @ 14

Last change on this file since 14 was 12, checked in by landauf, 17 years ago

added boost

File size: 2.6 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6<meta name="generator" content="Docutils 0.3.9: http://docutils.sourceforge.net/" />
7<title>Boost Pointer Container Library</title>
8<link rel="stylesheet" href="default.css" type="text/css" />
9</head>
10<body>
11<div class="document" id="boost-pointer-container-library">
12<h1 class="title"><img alt="Boost" src="boost.png" /> Pointer Container Library</h1>
13<h2 class="subtitle" id="class-ptr-map">Class <tt class="docutils literal"><span class="pre">ptr_map</span></tt></h2>
14<p>A <tt class="docutils literal"><span class="pre">ptr_map&lt;Key,T&gt;</span></tt> is a pointer container that uses an underlying <tt class="docutils literal"><span class="pre">std::map&lt;Key,void*&gt;</span></tt>
15to store the pointers.</p>
16<p><strong>See also:</strong></p>
17<ul class="simple">
18<li><a class="reference" href="reversible_ptr_container.html">reversible_ptr_container</a></li>
19<li><a class="reference" href="associative_ptr_container.html">associative_ptr_container</a></li>
20<li><a class="reference" href="ptr_map_adapter.html">ptr_map_adapter</a></li>
21<li><a class="reference" href="reference.html#map-iterator-operations">new map iterators</a></li>
22</ul>
23<!-- class `indirect_fun <indirect_fun.html>`_ -->
24<p><strong>Navigate:</strong></p>
25<ul class="simple">
26<li><a class="reference" href="ptr_container.html">home</a></li>
27<li><a class="reference" href="reference.html">reference</a></li>
28</ul>
29<p><strong>Synopsis:</strong></p>
30<pre class="literal-block">
31namespace boost
32{
33
34    template
35    &lt; 
36        class Key,
37        class T,
38        class Compare        = std::less&lt;Key&gt;,
39        class CloneAllocator = heap_clone_allocator,
40        class Allocator      = std::allocator&lt; std::pair&lt;const Key,void*&gt; &gt;
41    &gt;
42    class ptr_map : public ptr_map_adapter
43                           &lt;
44                               T,
45                               std::map&lt;Key,void*,Compare,Allocator&gt;,
46                               CloneAllocator
47                           &gt;
48    {
49        // see references
50       
51    }; //  class 'ptr_map'
52
53} // namespace 'boost' 
54</pre>
55<table class="docutils field-list" frame="void" rules="none">
56<col class="field-name" />
57<col class="field-body" />
58<tbody valign="top">
59<tr class="field"><th class="field-name">copyright:</th><td class="field-body">Thorsten Ottosen 2004-2005.</td>
60</tr>
61</tbody>
62</table>
63</div>
64</body>
65</html>
Note: See TracBrowser for help on using the repository browser.