| 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-multimap">Class <tt class="docutils literal"><span class="pre">ptr_multimap</span></tt></h2> |
|---|
| 14 | <p>A <tt class="docutils literal"><span class="pre">ptr_multimap<Key,T></span></tt> is a pointer container that uses an underlying <tt class="docutils literal"><span class="pre">std::multimap<Key,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_multimap_adapter.html">ptr_multimap_adapter</a></li> |
|---|
| 21 | <li><a class="reference" href="reference.html#map-iterator-operations">new map iterators</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 | template |
|---|
| 33 | < |
|---|
| 34 | class Key, |
|---|
| 35 | class T, |
|---|
| 36 | class Compare = std::less<Key>, |
|---|
| 37 | class CloneAllocator = heap_clone_allocator, |
|---|
| 38 | class Allocator = std::allocator< std::pair<const Key,void*> > |
|---|
| 39 | > |
|---|
| 40 | class ptr_multimap : public ptr_multimap_adapter |
|---|
| 41 | < |
|---|
| 42 | T, |
|---|
| 43 | std::multimap<Key,void*,Compare,Allocator>, |
|---|
| 44 | CloneAllocator |
|---|
| 45 | > |
|---|
| 46 | { |
|---|
| 47 | // see references |
|---|
| 48 | |
|---|
| 49 | }; // class 'ptr_multimap' |
|---|
| 50 | |
|---|
| 51 | } // namespace 'boost' |
|---|
| 52 | </pre> |
|---|
| 53 | <table class="docutils field-list" frame="void" rules="none"> |
|---|
| 54 | <col class="field-name" /> |
|---|
| 55 | <col class="field-body" /> |
|---|
| 56 | <tbody valign="top"> |
|---|
| 57 | <tr class="field"><th class="field-name">copyright:</th><td class="field-body">Thorsten Ottosen 2004-2005.</td> |
|---|
| 58 | </tr> |
|---|
| 59 | </tbody> |
|---|
| 60 | </table> |
|---|
| 61 | </div> |
|---|
| 62 | </body> |
|---|
| 63 | </html> |
|---|