| 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<T></span></tt> is a pointer container that uses an underlying <tt class="docutils literal"><span class="pre">std::set<void*></span></tt> |
|---|
| 15 | to 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"> |
|---|
| 30 | namespace boost |
|---|
| 31 | { |
|---|
| 32 | |
|---|
| 33 | template |
|---|
| 34 | < |
|---|
| 35 | class Key, |
|---|
| 36 | class Compare = std::less<Key>, |
|---|
| 37 | class CloneAllocator = heap_clone_allocator, |
|---|
| 38 | class Allocator = std::allocator<void*> |
|---|
| 39 | > |
|---|
| 40 | class ptr_set : public ptr_set_adapter |
|---|
| 41 | < |
|---|
| 42 | Key, |
|---|
| 43 | std::set<void*, |
|---|
| 44 | void_ptr_indirect_fun<Compare,Key>,Allocator>, |
|---|
| 45 | CloneAllocator |
|---|
| 46 | > |
|---|
| 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<T></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> |
|---|