Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/ptr_container/doc/ptr_set.html @ 20

Last change on this file since 20 was 12, checked in by landauf, 18 years ago

added boost

File size: 2.8 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-set">Class <tt class="docutils literal"><span class="pre">ptr_set</span></tt></h2>
14<p>A <tt class="docutils literal"><span class="pre">ptr_set&lt;T&gt;</span></tt> is a pointer container that uses an underlying <tt class="docutils literal"><span class="pre">std::set&lt;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_set_adapter.html">ptr_set_adapter</a></li>
21<li><a class="reference" href="indirect_fun.html">void_ptr_indirect_fun</a></li>
22</ul>
23<p><strong>Navigate:</strong></p>
24<ul class="simple">
25<li><a class="reference" href="ptr_container.html">home</a></li>
26<li><a class="reference" href="reference.html">reference</a></li>
27</ul>
28<p><strong>Synopsis:</strong></p>
29<pre class="literal-block">
30namespace boost
31{
32
33    template
34    &lt; 
35        class Key,
36        class Compare        = std::less&lt;Key&gt;,
37        class CloneAllocator = heap_clone_allocator,
38        class Allocator      = std::allocator&lt;void*&gt;
39    &gt;
40    class ptr_set : public  ptr_set_adapter
41                            &lt;
42                                Key,
43                                std::set&lt;void*,
44                                void_ptr_indirect_fun&lt;Compare,Key&gt;,Allocator&gt;,
45                                CloneAllocator
46                            &gt;
47    {
48        // see references
49       
50    }; //  class 'ptr_set'
51
52} // namespace 'boost' 
53</pre>
54<p><strong>Remarks:</strong></p>
55<ul class="simple">
56<li>Using <tt class="docutils literal"><span class="pre">nullable&lt;T&gt;</span></tt> as <tt class="docutils literal"><span class="pre">Key</span></tt> is meaningless and not allowed</li>
57</ul>
58<table class="docutils field-list" frame="void" rules="none">
59<col class="field-name" />
60<col class="field-body" />
61<tbody valign="top">
62<tr class="field"><th class="field-name">copyright:</th><td class="field-body">Thorsten Ottosen 2004-2005.</td>
63</tr>
64</tbody>
65</table>
66</div>
67</body>
68</html>
Note: See TracBrowser for help on using the repository browser.