69 lines
2.8 KiB
HTML
69 lines
2.8 KiB
HTML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="generator" content="Docutils 0.3.7: http://docutils.sourceforge.net/" />
|
|
<title>Boost Pointer Container Library</title>
|
|
<link rel="stylesheet" href="default.css" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div class="document" id="boost-pointer-container-library">
|
|
<h1 class="title"><img alt="Boost" src="cboost.gif" /> Pointer Container Library</h1>
|
|
<h2 class="subtitle" id="class-ptr-set">Class <tt class="docutils literal"><span class="pre">ptr_set</span></tt></h2>
|
|
<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>
|
|
to store the pointers.</p>
|
|
<p><strong>See also:</strong></p>
|
|
<ul class="simple">
|
|
<li><a class="reference" href="reversible_ptr_container.html">reversible_ptr_container</a></li>
|
|
<li><a class="reference" href="associative_ptr_container.html">associative_ptr_container</a></li>
|
|
<li><a class="reference" href="ptr_set_adapter.html">ptr_set_adapter</a></li>
|
|
<li><a class="reference" href="indirect_fun.html">void_ptr_indirect_fun</a></li>
|
|
</ul>
|
|
<p><strong>Navigate:</strong></p>
|
|
<ul class="simple">
|
|
<li><a class="reference" href="ptr_container.html">home</a></li>
|
|
<li><a class="reference" href="reference.html">reference</a></li>
|
|
</ul>
|
|
<p><strong>Synopsis:</strong></p>
|
|
<pre class="literal-block">
|
|
namespace boost
|
|
{
|
|
|
|
template
|
|
<
|
|
class Key,
|
|
class Compare = std::less<Key>,
|
|
class CloneAllocator = heap_clone_allocator,
|
|
class Allocator = std::allocator<void*>
|
|
>
|
|
class ptr_set : public ptr_set_adapter
|
|
<
|
|
Key,
|
|
std::set<void*,
|
|
void_ptr_indirect_fun<Compare,Key>,Allocator>,
|
|
CloneAllocator
|
|
>
|
|
{
|
|
// see references
|
|
|
|
}; // class 'ptr_set'
|
|
|
|
} // namespace 'boost'
|
|
</pre>
|
|
<p><strong>Remarks:</strong></p>
|
|
<ul class="simple">
|
|
<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>
|
|
</ul>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field"><th class="field-name">copyright:</th><td class="field-body">Thorsten Ottosen 2004-2005.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
</html>
|