summaryrefslogtreecommitdiff
path: root/doc/html/boost/intrusive/slist_member_hook.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/boost/intrusive/slist_member_hook.html')
-rw-r--r--doc/html/boost/intrusive/slist_member_hook.html38
1 files changed, 19 insertions, 19 deletions
diff --git a/doc/html/boost/intrusive/slist_member_hook.html b/doc/html/boost/intrusive/slist_member_hook.html
index 6a71d72509..1ccf7bcd9b 100644
--- a/doc/html/boost/intrusive/slist_member_hook.html
+++ b/doc/html/boost/intrusive/slist_member_hook.html
@@ -36,71 +36,71 @@
<span class="keyword">class</span> <a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">:</span> <span class="keyword">public</span> <span class="identifier">make_slist_member_hook</span><span class="special">::</span><span class="identifier">type</span><span class="special">&lt;</span> <span class="identifier">O1</span><span class="special">,</span> <span class="identifier">O2</span><span class="special">,</span> <span class="identifier">O3</span> <span class="special">&gt;</span> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
<span class="comment">// <a class="link" href="slist_member_hook.html#boost.intrusive.slist_member_hookconstruct-copy-destruct">construct/copy/destruct</a></span>
- <a class="link" href="slist_member_hook.html#idp72612784-bb"><span class="identifier">slist_member_hook</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
- <a class="link" href="slist_member_hook.html#idp72616560-bb"><span class="identifier">slist_member_hook</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
- <a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">&amp;</span> <a class="link" href="slist_member_hook.html#idp72622928-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
- <a class="link" href="slist_member_hook.html#idp72628224-bb"><span class="special">~</span><span class="identifier">slist_member_hook</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
+ <a class="link" href="slist_member_hook.html#idp83308208-bb"><span class="identifier">slist_member_hook</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
+ <a class="link" href="slist_member_hook.html#idp83311984-bb"><span class="identifier">slist_member_hook</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
+ <a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">&amp;</span> <a class="link" href="slist_member_hook.html#idp83318352-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
+ <a class="link" href="slist_member_hook.html#idp83323648-bb"><span class="special">~</span><span class="identifier">slist_member_hook</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
- <span class="comment">// <a class="link" href="slist_member_hook.html#idp72596112-bb">public member functions</a></span>
- <span class="keyword">void</span> <a class="link" href="slist_member_hook.html#idp72596672-bb"><span class="identifier">swap_nodes</span></a><span class="special">(</span><a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
- <span class="keyword">bool</span> <a class="link" href="slist_member_hook.html#idp72601680-bb"><span class="identifier">is_linked</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
- <span class="keyword">void</span> <a class="link" href="slist_member_hook.html#idp72608704-bb"><span class="identifier">unlink</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
+ <span class="comment">// <a class="link" href="slist_member_hook.html#idp83291536-bb">public member functions</a></span>
+ <span class="keyword">void</span> <a class="link" href="slist_member_hook.html#idp83292096-bb"><span class="identifier">swap_nodes</span></a><span class="special">(</span><a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
+ <span class="keyword">bool</span> <a class="link" href="slist_member_hook.html#idp83297104-bb"><span class="identifier">is_linked</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
+ <span class="keyword">void</span> <a class="link" href="slist_member_hook.html#idp83304128-bb"><span class="identifier">unlink</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
-<a name="id-1.3.19.43.36.6.4"></a><h2>Description</h2>
+<a name="id-1.3.20.42.36.6.4"></a><h2>Description</h2>
<p>Put a public data member <a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> in order to store objects of this class in an list. <a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> holds the data necessary for maintaining the list and provides an appropriate <a class="link" href="value_traits.html" title="Struct template value_traits">value_traits</a> class for list.</p>
<p>The hook admits the following options: <code class="computeroutput">void_pointer&lt;&gt;</code> and <code class="computeroutput">link_mode&lt;&gt;</code>.</p>
<p><code class="computeroutput">link_mode&lt;&gt;</code> will specify the linking mode of the hook (<code class="computeroutput">normal_link</code>, <code class="computeroutput">auto_unlink</code> or <code class="computeroutput">safe_link</code>).</p>
<p><code class="computeroutput">void_pointer&lt;&gt;</code> is the pointer type that will be used internally in the hook and the container configured to use this hook. </p>
<div class="refsect2">
-<a name="id-1.3.19.43.36.6.4.6"></a><h3>
+<a name="id-1.3.20.42.36.6.4.6"></a><h3>
<a name="boost.intrusive.slist_member_hookconstruct-copy-destruct"></a><code class="computeroutput">slist_member_hook</code>
public
construct/copy/destruct</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
-<pre class="literallayout"><a name="idp72612784-bb"></a><span class="identifier">slist_member_hook</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
+<pre class="literallayout"><a name="idp83308208-bb"></a><span class="identifier">slist_member_hook</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: If <code class="computeroutput"><a class="link" href="link_mode.html" title="Struct template link_mode">link_mode</a></code> is <code class="computeroutput">auto_unlink</code> or <code class="computeroutput">safe_link</code> initializes the node to an unlinked state.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing. </p>
</li>
<li class="listitem">
-<pre class="literallayout"><a name="idp72616560-bb"></a><span class="identifier">slist_member_hook</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span></pre>
+<pre class="literallayout"><a name="idp83311984-bb"></a><span class="identifier">slist_member_hook</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: If <code class="computeroutput"><a class="link" href="link_mode.html" title="Struct template link_mode">link_mode</a></code> is <code class="computeroutput">auto_unlink</code> or <code class="computeroutput">safe_link</code> initializes the node to an unlinked state. The argument is ignored.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Rationale</strong></span>: Providing a copy-constructor makes classes using the hook STL-compliant without forcing the user to do some additional work. <code class="computeroutput">swap</code> can be used to emulate move-semantics. </p>
</li>
<li class="listitem">
-<pre class="literallayout"><a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">&amp;</span> <a name="idp72622928-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span></pre>
+<pre class="literallayout"><a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">&amp;</span> <a name="idp83318352-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Empty function. The argument is ignored.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Rationale</strong></span>: Providing an assignment operator makes classes using the hook STL-compliant without forcing the user to do some additional work. <code class="computeroutput">swap</code> can be used to emulate move-semantics. </p>
</li>
<li class="listitem">
-<pre class="literallayout"><a name="idp72628224-bb"></a><span class="special">~</span><span class="identifier">slist_member_hook</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
+<pre class="literallayout"><a name="idp83323648-bb"></a><span class="special">~</span><span class="identifier">slist_member_hook</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: If <code class="computeroutput"><a class="link" href="link_mode.html" title="Struct template link_mode">link_mode</a></code> is <code class="computeroutput">normal_link</code>, the destructor does nothing (ie. no code is generated). If <code class="computeroutput"><a class="link" href="link_mode.html" title="Struct template link_mode">link_mode</a></code> is <code class="computeroutput">safe_link</code> and the object is stored in an slist an assertion is raised. If <code class="computeroutput"><a class="link" href="link_mode.html" title="Struct template link_mode">link_mode</a></code> is <code class="computeroutput">auto_unlink</code> and <code class="computeroutput">is_linked()</code> is true, the node is unlinked.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing. </p>
</li>
</ol></div>
</div>
<div class="refsect2">
-<a name="id-1.3.19.43.36.6.4.7"></a><h3>
-<a name="idp72596112-bb"></a><code class="computeroutput">slist_member_hook</code> public member functions</h3>
+<a name="id-1.3.20.42.36.6.4.7"></a><h3>
+<a name="idp83291536-bb"></a><code class="computeroutput">slist_member_hook</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
-<pre class="literallayout"><span class="keyword">void</span> <a name="idp72596672-bb"></a><span class="identifier">swap_nodes</span><span class="special">(</span><a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">&amp;</span> other<span class="special">)</span><span class="special">;</span></pre>
+<pre class="literallayout"><span class="keyword">void</span> <a name="idp83292096-bb"></a><span class="identifier">swap_nodes</span><span class="special">(</span><a class="link" href="slist_member_hook.html" title="Class template slist_member_hook">slist_member_hook</a> <span class="special">&amp;</span> other<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Swapping two nodes swaps the position of the elements related to those nodes in one or two containers. That is, if the node this is part of the element e1, the node x is part of the element e2 and both elements are included in the containers s1 and s2, then after the swap-operation e1 is in s2 at the position of e2 and e2 is in s1 at the position of e1. If one element is not in a container, then after the swap-operation the other element is not in a container. Iterators to e1 and e2 related to those nodes are invalidated.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing. </p>
</li>
<li class="listitem">
-<pre class="literallayout"><span class="keyword">bool</span> <a name="idp72601680-bb"></a><span class="identifier">is_linked</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
+<pre class="literallayout"><span class="keyword">bool</span> <a name="idp83297104-bb"></a><span class="identifier">is_linked</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput"><a class="link" href="link_mode.html" title="Struct template link_mode">link_mode</a></code> must be <code class="computeroutput">safe_link</code> or <code class="computeroutput">auto_unlink</code>.</p>
<p><span class="bold"><strong>Returns</strong></span>: true, if the node belongs to a container, false otherwise. This function can be used to test whether <code class="computeroutput">slist::iterator_to</code> will return a valid iterator.</p>
<p><span class="bold"><strong>Note</strong></span>: If this member is called when the value is inserted in a slist with the option linear&lt;true&gt;, this function will return "false" for the last element, as it is not linked to anything (the next element is null), so use with care.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant </p>
</li>
<li class="listitem">
-<pre class="literallayout"><span class="keyword">void</span> <a name="idp72608704-bb"></a><span class="identifier">unlink</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
+<pre class="literallayout"><span class="keyword">void</span> <a name="idp83304128-bb"></a><span class="identifier">unlink</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Removes the node if it's inserted in a container. This function is only allowed if <code class="computeroutput"><a class="link" href="link_mode.html" title="Struct template link_mode">link_mode</a></code> is <code class="computeroutput">auto_unlink</code>.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing. </p>
</li>