Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > c74ab286c3d46f9b82671d206e43a74b > files > 91

libstdc++-docs-4.6.3-2.fc15.i686.rpm

<!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">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libstdc++: __gnu_debug::_Safe_sequence&lt; _Sequence &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">libstdc++</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00085.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">__gnu_debug::_Safe_sequence&lt; _Sequence &gt; Class Template Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="__gnu_debug::_Safe_sequence" --><!-- doxytag: inherits="__gnu_debug::_Safe_sequence_base" -->
<p>Base class for constructing a <em>safe</em> sequence type that tracks iterators that reference it.  
 <a href="a00085.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for __gnu_debug::_Safe_sequence&lt; _Sequence &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="a01515.png" border="0" usemap="#____gnu__debug_1_1___safe__sequence_3_01___sequence_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="____gnu__debug_1_1___safe__sequence_3_01___sequence_01_4_inherit__map" id="____gnu__debug_1_1___safe__sequence_3_01___sequence_01_4_inherit__map">
<area shape="rect" id="node5" href="a00085.html" title="__gnu_debug::_Safe_sequence\&lt; unordered_map\&lt; _Key, _Tp, _Hash, _Pred, _Alloc \&gt; \&gt;" alt="" coords="963,44,1464,73"/><area shape="rect" id="node9" href="a00085.html" title="__gnu_debug::_Safe_sequence\&lt; list\&lt; _Tp, _Allocator \&gt; \&gt;" alt="" coords="1047,97,1380,127"/><area shape="rect" id="node13" href="a00085.html" title="__gnu_debug::_Safe_sequence\&lt; multimap\&lt; _Key, _Tp, _Compare, _Allocator \&gt; \&gt;" alt="" coords="980,151,1447,180"/><area shape="rect" id="node17" href="a00085.html" title="__gnu_debug::_Safe_sequence\&lt; unordered_multiset\&lt; _Value, _Hash, _Pred, _Alloc \&gt; \&gt;" alt="" coords="961,204,1465,233"/><area shape="rect" id="node21" href="a00085.html" title="__gnu_debug::_Safe_sequence\&lt; unordered_multimap\&lt; _Key, _Tp, _Hash, _Pred, _Alloc \&gt; \&gt;" alt="" coords="949,257,1477,287"/><area shape="rect" id="node25" href="a00085.html" title="__gnu_debug::_Safe_sequence\&lt; basic_string\&lt; _CharT, _Traits, _Allocator \&gt; \&gt;" alt="" coords="989,311,1437,340"/><area shape="rect" id="node29" href="a00085.html" title="__gnu_debug::_Safe_sequence\&lt; forward_list\&lt; _Tp, _Alloc \&gt; \&gt;" alt="" coords="1032,364,1395,393"/><area shape="rect" id="node33" href="a00085.html" title="__gnu_debug::_Safe_sequence\&lt; set\&lt; _Key, _Compare, _Allocator \&gt; \&gt;" alt="" coords="1011,417,1416,447"/><area shape="rect" id="node37" href="a00085.html" title="__gnu_debug::_Safe_sequence\&lt; deque\&lt; _Tp, _Allocator \&gt; \&gt;" alt="" coords="1036,471,1391,500"/><area shape="rect" id="node41" href="a00085.html" title="__gnu_debug::_Safe_sequence\&lt; vector\&lt; _Tp, _Allocator \&gt; \&gt;" alt="" coords="1037,524,1389,553"/><area shape="rect" id="node45" href="a00085.html" title="__gnu_debug::_Safe_sequence\&lt; multiset\&lt; _Key, _Compare, _Allocator \&gt; \&gt;" alt="" coords="997,577,1429,607"/><area shape="rect" id="node49" href="a00085.html" title="__gnu_debug::_Safe_sequence\&lt; map\&lt; _Key, _Tp, _Compare, _Allocator \&gt; \&gt;" alt="" coords="992,631,1435,660"/><area shape="rect" id="node53" href="a00085.html" title="__gnu_debug::_Safe_sequence\&lt; unordered_set\&lt; _Value, _Hash, _Pred, _Alloc \&gt; \&gt;" alt="" coords="975,684,1452,713"/><area shape="rect" id="node2" href="a00086.html" title="Base class that supports tracking of iterators that reference a sequence." alt="" coords="5,364,237,393"/><area shape="rect" id="node7" href="a00282.html" title="Class std::unordered_map with safety/checking/debug instrumentation." alt="" coords="1543,44,1924,73"/><area shape="rect" id="node11" href="a00277.html" title="Class std::list with safety/checking/debug instrumentation." alt="" coords="1625,97,1841,127"/><area shape="rect" id="node15" href="a00279.html" title="Class std::multimap with safety/checking/debug instrumentation." alt="" coords="1559,151,1908,180"/><area shape="rect" id="node19" href="a00284.html" title="Class std::unordered_multiset with safety/checking/debug instrumentation." alt="" coords="1541,204,1925,233"/><area shape="rect" id="node23" href="a00283.html" title="Class std::unordered_multimap with safety/checking/debug instrumentation." alt="" coords="1529,257,1937,287"/><area shape="rect" id="node27" href="a00087.html" title="Class std::basic_string with safety/checking/debug instrumentation." alt="" coords="1565,311,1901,340"/><area shape="rect" id="node31" href="a00276.html" title="Class std::forward_list with safety/checking/debug instrumentation." alt="" coords="1612,364,1855,393"/><area shape="rect" id="node35" href="a00281.html" title="Class std::set with safety/checking/debug instrumentation." alt="" coords="1589,417,1877,447"/><area shape="rect" id="node39" href="a00275.html" title="Class std::deque with safety/checking/debug instrumentation." alt="" coords="1616,471,1851,500"/><area shape="rect" id="node43" href="a00286.html" title="Class std::vector with safety/checking/debug instrumentation." alt="" coords="1616,524,1851,553"/><area shape="rect" id="node47" href="a00280.html" title="Class std::multiset with safety/checking/debug instrumentation." alt="" coords="1576,577,1891,607"/><area shape="rect" id="node51" href="a00278.html" title="Class std::map with safety/checking/debug instrumentation." alt="" coords="1572,631,1895,660"/><area shape="rect" id="node55" href="a00285.html" title="Class std::unordered_set with safety/checking/debug instrumentation." alt="" coords="1555,684,1912,713"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="a01516.html">List of all members.</a></p>
<h2><a name="pub-methods"></a>
Public Member Functions</h2>
<ul>
<li>void <a class="el" href="a00086.html#ab4d477bee04a7c71f2f3ac04667b63c2">_M_attach</a> (<a class="el" href="a00084.html">_Safe_iterator_base</a> *__it, bool __constant)
<li>void <a class="el" href="a00086.html#ad5c931183ca6fac813724ea31fc537b8">_M_attach_single</a> (<a class="el" href="a00084.html">_Safe_iterator_base</a> *__it, bool __constant)  throw ()
<li>void <a class="el" href="a00086.html#a1f75fb78e5fdd2fb5242751fe1ad2dd3">_M_detach</a> (<a class="el" href="a00084.html">_Safe_iterator_base</a> *__it)
<li>void <a class="el" href="a00086.html#ab532ee20093a89d4b9d38a3cd4873fd8">_M_detach_single</a> (<a class="el" href="a00084.html">_Safe_iterator_base</a> *__it)  throw ()
<li>void <a class="el" href="a00086.html#a1e5eb0a6858097f7fbc476fa58cb8f22">_M_invalidate_all</a> () const 
<li>template&lt;typename _Predicate &gt; void <a class="el" href="a00085.html#a64d63447c22a1503287db80538a38eb5">_M_invalidate_if</a> (_Predicate __pred)
<li>template&lt;typename _Predicate &gt; void <a class="el" href="a00085.html#ae63cba02bf86ff03474066a2ae09fedf">_M_transfer_from_if</a> (<a class="el" href="a00085.html">_Safe_sequence</a> &amp;__from, _Predicate __pred)
</ul>
<h2><a name="pub-attribs"></a>
Public Attributes</h2>
<ul>
<li><a class="el" href="a00084.html">_Safe_iterator_base</a> * <a class="el" href="a00086.html#a5aabbc5d256f3eaaf313274ebf200877">_M_const_iterators</a>
<li><a class="el" href="a00084.html">_Safe_iterator_base</a> * <a class="el" href="a00086.html#a9d678da43e3d7456af279062c4e5c28a">_M_iterators</a>
<li>unsigned int <a class="el" href="a00086.html#af796b1fd115ea27cd078eeb7e4909bd5">_M_version</a>
</ul>
<h2><a name="pro-methods"></a>
Protected Member Functions</h2>
<ul>
<li>void <a class="el" href="a00086.html#acebac46f833f903deb7c094fc26cbea1">_M_detach_all</a> ()
<li>void <a class="el" href="a00086.html#aadde2fc883be085fc4588c1ef442cd3d">_M_detach_singular</a> ()
<li>__gnu_cxx::__mutex &amp; <a class="el" href="a00086.html#aa245644963340f3dee07d384eeeb01f3">_M_get_mutex</a> ()  throw ()
<li>void <a class="el" href="a00086.html#a75f6eb02cd1721b550bd5eb205ed6920">_M_revalidate_singular</a> ()
<li>void <a class="el" href="a00086.html#a0dab4a25feb468949f28f2820400cd8b">_M_swap</a> (<a class="el" href="a00086.html">_Safe_sequence_base</a> &amp;__x)
</ul>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename _Sequence&gt;<br/>
class __gnu_debug::_Safe_sequence&lt; _Sequence &gt;</h3>

<p>Base class for constructing a <em>safe</em> sequence type that tracks iterators that reference it. </p>
<p>The class template _Safe_sequence simplifies the construction of <em>safe</em> sequences that track the iterators that reference the sequence, so that the iterators are notified of changes in the sequence that may affect their operation, e.g., if the container invalidates its iterators or is destructed. This class template may only be used by deriving from it and passing the name of the derived class as its template parameter via the curiously recurring template pattern. The derived class must have <code>iterator</code> and  types that are instantiations of class template <a class="el" href="a00083.html" title="Safe iterator wrapper.">_Safe_iterator</a> for this sequence. Iterators will then be tracked automatically. </p>

<p>Definition at line <a class="el" href="a01020_source.html#l00112">112</a> of file <a class="el" href="a01020_source.html">safe_sequence.h</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ab4d477bee04a7c71f2f3ac04667b63c2"></a><!-- doxytag: member="__gnu_debug::_Safe_sequence::_M_attach" ref="ab4d477bee04a7c71f2f3ac04667b63c2" args="(_Safe_iterator_base *__it, bool __constant)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void __gnu_debug::_Safe_sequence_base::_M_attach </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00084.html">_Safe_iterator_base</a> *&#160;</td>
          <td class="paramname"><em>__it</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>__constant</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Attach an iterator to this sequence. </p>

</div>
</div>
<a class="anchor" id="ad5c931183ca6fac813724ea31fc537b8"></a><!-- doxytag: member="__gnu_debug::_Safe_sequence::_M_attach_single" ref="ad5c931183ca6fac813724ea31fc537b8" args="(_Safe_iterator_base *__it, bool __constant)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void __gnu_debug::_Safe_sequence_base::_M_attach_single </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00084.html">_Safe_iterator_base</a> *&#160;</td>
          <td class="paramname"><em>__it</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>__constant</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throw ()<code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Likewise but not thread safe. </p>

</div>
</div>
<a class="anchor" id="a1f75fb78e5fdd2fb5242751fe1ad2dd3"></a><!-- doxytag: member="__gnu_debug::_Safe_sequence::_M_detach" ref="a1f75fb78e5fdd2fb5242751fe1ad2dd3" args="(_Safe_iterator_base *__it)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void __gnu_debug::_Safe_sequence_base::_M_detach </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00084.html">_Safe_iterator_base</a> *&#160;</td>
          <td class="paramname"><em>__it</em></td><td>)</td>
          <td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Detach an iterator from this sequence </p>

</div>
</div>
<a class="anchor" id="acebac46f833f903deb7c094fc26cbea1"></a><!-- doxytag: member="__gnu_debug::_Safe_sequence::_M_detach_all" ref="acebac46f833f903deb7c094fc26cbea1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void __gnu_debug::_Safe_sequence_base::_M_detach_all </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected, inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Detach all iterators, leaving them singular. </p>

<p>Referenced by <a class="el" href="a01017_source.html#l00198">__gnu_debug::_Safe_sequence_base::~_Safe_sequence_base()</a>.</p>

</div>
</div>
<a class="anchor" id="ab532ee20093a89d4b9d38a3cd4873fd8"></a><!-- doxytag: member="__gnu_debug::_Safe_sequence::_M_detach_single" ref="ab532ee20093a89d4b9d38a3cd4873fd8" args="(_Safe_iterator_base *__it)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void __gnu_debug::_Safe_sequence_base::_M_detach_single </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00084.html">_Safe_iterator_base</a> *&#160;</td>
          <td class="paramname"><em>__it</em></td><td>)</td>
          <td>  throw ()<code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Likewise but not thread safe. </p>

</div>
</div>
<a class="anchor" id="aadde2fc883be085fc4588c1ef442cd3d"></a><!-- doxytag: member="__gnu_debug::_Safe_sequence::_M_detach_singular" ref="aadde2fc883be085fc4588c1ef442cd3d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void __gnu_debug::_Safe_sequence_base::_M_detach_singular </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected, inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Detach all singular iterators. </p>
<dl class="post"><dt><b>Postcondition:</b></dt><dd>for all iterators i attached to this sequence, i-&gt;_M_version == _M_version. </dd></dl>

</div>
</div>
<a class="anchor" id="aa245644963340f3dee07d384eeeb01f3"></a><!-- doxytag: member="__gnu_debug::_Safe_sequence::_M_get_mutex" ref="aa245644963340f3dee07d384eeeb01f3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__gnu_cxx::__mutex&amp; __gnu_debug::_Safe_sequence_base::_M_get_mutex </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>  throw ()<code> [protected, inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>For use in <a class="el" href="a00085.html" title="Base class for constructing a safe sequence type that tracks iterators that reference it...">_Safe_sequence</a>. </p>

<p>Referenced by <a class="el" href="a01021_source.html#l00069">__gnu_debug::_Safe_sequence&lt; _Sequence &gt;::_M_transfer_from_if()</a>.</p>

</div>
</div>
<a class="anchor" id="a1e5eb0a6858097f7fbc476fa58cb8f22"></a><!-- doxytag: member="__gnu_debug::_Safe_sequence::_M_invalidate_all" ref="a1e5eb0a6858097f7fbc476fa58cb8f22" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void __gnu_debug::_Safe_sequence_base::_M_invalidate_all </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline, inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Invalidates all iterators. </p>

<p>Definition at line <a class="el" href="a01017_source.html#l00234">234</a> of file <a class="el" href="a01017_source.html">safe_base.h</a>.</p>

<p>References <a class="el" href="a01017_source.html#l00188">__gnu_debug::_Safe_sequence_base::_M_version</a>.</p>

<p>Referenced by <a class="el" href="a01075_source.html#l00325">__gnu_debug::basic_string&lt; _CharT, _Traits, _Allocator &gt;::append()</a>, <a class="el" href="a01075_source.html#l00397">__gnu_debug::basic_string&lt; _CharT, _Traits, _Allocator &gt;::assign()</a>, <a class="el" href="a01075_source.html#l00675">__gnu_debug::basic_string&lt; _CharT, _Traits, _Allocator &gt;::c_str()</a>, <a class="el" href="a01075_source.html#l00229">__gnu_debug::basic_string&lt; _CharT, _Traits, _Allocator &gt;::clear()</a>, <a class="el" href="a01075_source.html#l00683">__gnu_debug::basic_string&lt; _CharT, _Traits, _Allocator &gt;::data()</a>, <a class="el" href="a01075_source.html#l00524">__gnu_debug::basic_string&lt; _CharT, _Traits, _Allocator &gt;::erase()</a>, <a class="el" href="a01075_source.html#l00461">__gnu_debug::basic_string&lt; _CharT, _Traits, _Allocator &gt;::insert()</a>, <a class="el" href="a01075_source.html#l00282">__gnu_debug::basic_string&lt; _CharT, _Traits, _Allocator &gt;::operator+=()</a>, <a class="el" href="a01075_source.html#l00138">__gnu_debug::basic_string&lt; _CharT, _Traits, _Allocator &gt;::operator=()</a>, <a class="el" href="a01075_source.html#l00364">__gnu_debug::basic_string&lt; _CharT, _Traits, _Allocator &gt;::push_back()</a>, <a class="el" href="a01075_source.html#l00570">__gnu_debug::basic_string&lt; _CharT, _Traits, _Allocator &gt;::replace()</a>, and <a class="el" href="a01075_source.html#l00211">__gnu_debug::basic_string&lt; _CharT, _Traits, _Allocator &gt;::resize()</a>.</p>

</div>
</div>
<a class="anchor" id="a64d63447c22a1503287db80538a38eb5"></a><!-- doxytag: member="__gnu_debug::_Safe_sequence::_M_invalidate_if" ref="a64d63447c22a1503287db80538a38eb5" args="(_Predicate __pred)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Sequence &gt; </div>
<div class="memtemplate">
template&lt;typename _Predicate &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="a00085.html">__gnu_debug::_Safe_sequence</a>&lt; _Sequence &gt;::_M_invalidate_if </td>
          <td>(</td>
          <td class="paramtype">_Predicate&#160;</td>
          <td class="paramname"><em>__pred</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Invalidates all iterators <code>x</code> that reference this sequence, are not singular, and for which <code>pred(x)</code> returns <code>true</code>. <code>pred</code> will be invoked with the normal iterators nested in the safe ones. </p>

<p>Definition at line <a class="el" href="a01021_source.html#l00038">38</a> of file <a class="el" href="a01021_source.html">safe_sequence.tcc</a>.</p>

</div>
</div>
<a class="anchor" id="a75f6eb02cd1721b550bd5eb205ed6920"></a><!-- doxytag: member="__gnu_debug::_Safe_sequence::_M_revalidate_singular" ref="a75f6eb02cd1721b550bd5eb205ed6920" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void __gnu_debug::_Safe_sequence_base::_M_revalidate_singular </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected, inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Revalidates all attached singular iterators. This method may be used to validate iterators that were invalidated before (but for some reason, such as an exception, need to become valid again). </p>

</div>
</div>
<a class="anchor" id="a0dab4a25feb468949f28f2820400cd8b"></a><!-- doxytag: member="__gnu_debug::_Safe_sequence::_M_swap" ref="a0dab4a25feb468949f28f2820400cd8b" args="(_Safe_sequence_base &amp;__x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void __gnu_debug::_Safe_sequence_base::_M_swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00086.html">_Safe_sequence_base</a> &amp;&#160;</td>
          <td class="paramname"><em>__x</em></td><td>)</td>
          <td><code> [protected, inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Swap this sequence with the given sequence. This operation also swaps ownership of the iterators, so that when the operation is complete all iterators that originally referenced one container now reference the other container. </p>

</div>
</div>
<a class="anchor" id="ae63cba02bf86ff03474066a2ae09fedf"></a><!-- doxytag: member="__gnu_debug::_Safe_sequence::_M_transfer_from_if" ref="ae63cba02bf86ff03474066a2ae09fedf" args="(_Safe_sequence &amp;__from, _Predicate __pred)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Sequence &gt; </div>
<div class="memtemplate">
template&lt;typename _Predicate &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="a00085.html">__gnu_debug::_Safe_sequence</a>&lt; _Sequence &gt;::_M_transfer_from_if </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00085.html">_Safe_sequence</a>&lt; _Sequence &gt; &amp;&#160;</td>
          <td class="paramname"><em>__from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_Predicate&#160;</td>
          <td class="paramname"><em>__pred</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Transfers all iterators <code>x</code> that reference <code>from</code> sequence, are not singular, and for which <code>pred(x)</code> returns <code>true</code>. <code>pred</code> will be invoked with the normal iterators nested in the safe ones. </p>

<p>Definition at line <a class="el" href="a01021_source.html#l00069">69</a> of file <a class="el" href="a01021_source.html">safe_sequence.tcc</a>.</p>

<p>References <a class="el" href="a01017_source.html#l00185">__gnu_debug::_Safe_sequence_base::_M_const_iterators</a>, <a class="el" href="a00084.html#af1899eb4a27c3de8a74e9bf24dc920b4">__gnu_debug::_Safe_iterator_base::_M_detach_single()</a>, <a class="el" href="a00086.html#aa245644963340f3dee07d384eeeb01f3">__gnu_debug::_Safe_sequence_base::_M_get_mutex()</a>, <a class="el" href="a01017_source.html#l00182">__gnu_debug::_Safe_sequence_base::_M_iterators</a>, <a class="el" href="a01017_source.html#l00073">__gnu_debug::_Safe_iterator_base::_M_next</a>, <a class="el" href="a01017_source.html#l00069">__gnu_debug::_Safe_iterator_base::_M_prior</a>, <a class="el" href="a01017_source.html#l00056">__gnu_debug::_Safe_iterator_base::_M_sequence</a>, and <a class="el" href="a01017_source.html#l00188">__gnu_debug::_Safe_sequence_base::_M_version</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a5aabbc5d256f3eaaf313274ebf200877"></a><!-- doxytag: member="__gnu_debug::_Safe_sequence::_M_const_iterators" ref="a5aabbc5d256f3eaaf313274ebf200877" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00084.html">_Safe_iterator_base</a>* <a class="el" href="a00086.html#a5aabbc5d256f3eaaf313274ebf200877">__gnu_debug::_Safe_sequence_base::_M_const_iterators</a><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The list of constant iterators that reference this container. </p>

<p>Definition at line <a class="el" href="a01017_source.html#l00185">185</a> of file <a class="el" href="a01017_source.html">safe_base.h</a>.</p>

<p>Referenced by <a class="el" href="a01021_source.html#l00069">__gnu_debug::_Safe_sequence&lt; _Sequence &gt;::_M_transfer_from_if()</a>.</p>

</div>
</div>
<a class="anchor" id="a9d678da43e3d7456af279062c4e5c28a"></a><!-- doxytag: member="__gnu_debug::_Safe_sequence::_M_iterators" ref="a9d678da43e3d7456af279062c4e5c28a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00084.html">_Safe_iterator_base</a>* <a class="el" href="a00086.html#a9d678da43e3d7456af279062c4e5c28a">__gnu_debug::_Safe_sequence_base::_M_iterators</a><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The list of mutable iterators that reference this container. </p>

<p>Definition at line <a class="el" href="a01017_source.html#l00182">182</a> of file <a class="el" href="a01017_source.html">safe_base.h</a>.</p>

<p>Referenced by <a class="el" href="a01021_source.html#l00069">__gnu_debug::_Safe_sequence&lt; _Sequence &gt;::_M_transfer_from_if()</a>.</p>

</div>
</div>
<a class="anchor" id="af796b1fd115ea27cd078eeb7e4909bd5"></a><!-- doxytag: member="__gnu_debug::_Safe_sequence::_M_version" ref="af796b1fd115ea27cd078eeb7e4909bd5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="a00086.html#af796b1fd115ea27cd078eeb7e4909bd5">__gnu_debug::_Safe_sequence_base::_M_version</a><code> [mutable, inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The container version number. This number may never be 0. </p>

<p>Definition at line <a class="el" href="a01017_source.html#l00188">188</a> of file <a class="el" href="a01017_source.html">safe_base.h</a>.</p>

<p>Referenced by <a class="el" href="a01017_source.html#l00234">__gnu_debug::_Safe_sequence_base::_M_invalidate_all()</a>, and <a class="el" href="a01021_source.html#l00069">__gnu_debug::_Safe_sequence&lt; _Sequence &gt;::_M_transfer_from_if()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a01020_source.html">safe_sequence.h</a></li>
<li><a class="el" href="a01021_source.html">safe_sequence.tcc</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a01129.html">__gnu_debug</a>      </li>
      <li class="navelem"><a class="el" href="a00085.html">_Safe_sequence</a>      </li>
      <li class="footer">Generated by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>

</body>
</html>