Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > bfb47da7e0322bcb0e23e4b1838d9db9 > files > 703

libstdc++-docs-8.4.0-1.mga7.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libstdc++: safe_unordered_base.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libstdc++
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00794_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">safe_unordered_base.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="a00794.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// Safe container/iterator base implementation  -*- C++ -*-</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Copyright (C) 2011-2018 Free Software Foundation, Inc.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">// This file is part of the GNU ISO C++ Library.  This library is free</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// software; you can redistribute it and/or modify it under the</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// terms of the GNU General Public License as published by the</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">// Free Software Foundation; either version 3, or (at your option)</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// any later version.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// This library is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">// GNU General Public License for more details.</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// Under Section 7 of GPL version 3, you are granted additional</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">// permissions described in the GCC Runtime Library Exception, version</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// 3.1, as published by the Free Software Foundation.</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">// You should have received a copy of the GNU General Public License and</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// a copy of the GCC Runtime Library Exception along with this program;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">// &lt;http://www.gnu.org/licenses/&gt;.</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">/** @file debug/safe_unordered_base.h</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *  This file is a GNU debug extension to the Standard C++ Library.</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#ifndef _GLIBCXX_DEBUG_SAFE_UNORDERED_BASE_H</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#define _GLIBCXX_DEBUG_SAFE_UNORDERED_BASE_H 1</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="a00770.html">debug/safe_base.h</a>&gt;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">namespace </span><a class="code" href="a01571.html">__gnu_debug</a></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;{</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;  <span class="keyword">class </span>_Safe_unordered_container_base;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">  /** \brief Basic functionality for a @a safe iterator.</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment">   *</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">   *  The %_Safe_local_iterator_base base class implements the functionality</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment">   *  of a safe local iterator that is not specific to a particular iterator</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment">   *  type. It contains a pointer back to the container it references</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">   *  along with iterator version information and pointers to form a</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">   *  doubly-linked list of local iterators referenced by the container.</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment">   *</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">   *  This class must not perform any operations that can throw an</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment">   *  exception, or the exception guarantees of derived iterators will</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">   *  be broken.</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">   */</span></div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="a08727.html">   50</a></span>&#160;  <span class="keyword">class </span><a class="code" href="a08727.html">_Safe_local_iterator_base</a> : <span class="keyword">public</span> <a class="code" href="a08683.html">_Safe_iterator_base</a></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  {</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  <span class="keyword">protected</span>:<span class="comment"></span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="comment">    /** Initializes the iterator and makes it singular. */</span></div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="a08727.html#ad7d51ed8396149f6d4d44e9bbf48ddf3">   54</a></span>&#160;    <a class="code" href="a08727.html#ad7d51ed8396149f6d4d44e9bbf48ddf3">_Safe_local_iterator_base</a>()</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    { }</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="comment">    /** Initialize the iterator to reference the container pointed to</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment">     *  by @p __seq. @p __constant is true when we are initializing a</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="comment">     *  constant local iterator, and false if it is a mutable local iterator.</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="comment">     *  Note that @p __seq may be NULL, in which case the iterator will be</span></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment">     *  singular. Otherwise, the iterator will reference @p __seq and</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="comment">     *  be nonsingular.</span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="comment">     */</span></div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="a08727.html#a7958bccd20b93cf3f6cffc4ed922346d">   64</a></span>&#160;    <a class="code" href="a08727.html#a7958bccd20b93cf3f6cffc4ed922346d">_Safe_local_iterator_base</a>(<span class="keyword">const</span> <a class="code" href="a08687.html">_Safe_sequence_base</a>* __seq, <span class="keywordtype">bool</span> __constant)</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    { this-&gt;<a class="code" href="a08727.html#a78f52529ca9957c3f87afb0920456374">_M_attach</a>(const_cast&lt;_Safe_sequence_base*&gt;(__seq), __constant); }</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="comment">    /** Initializes the iterator to reference the same container that</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="comment">        @p __x does. @p __constant is true if this is a constant</span></div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="comment">        iterator, and false if it is mutable. */</span></div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="a08727.html#aba66dde2adb286395bcb7714f32e64d9">   70</a></span>&#160;    <a class="code" href="a08727.html#aba66dde2adb286395bcb7714f32e64d9">_Safe_local_iterator_base</a>(<span class="keyword">const</span> <a class="code" href="a08727.html">_Safe_local_iterator_base</a>&amp; __x,</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;                              <span class="keywordtype">bool</span> __constant)</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    { this-&gt;<a class="code" href="a08727.html#a78f52529ca9957c3f87afb0920456374">_M_attach</a>(__x.<a class="code" href="a08683.html#a0ee820218a8e43841a84d866dc94f1e3">_M_sequence</a>, __constant); }</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    ~<a class="code" href="a08727.html">_Safe_local_iterator_base</a>() { this-&gt;<a class="code" href="a08727.html#ad88baf5072fed556979aaf901b3dfafd">_M_detach</a>(); }</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    _Safe_unordered_container_base*</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    _M_get_container() const noexcept;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment">    /** Attaches this iterator to the given container, detaching it</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment">     *  from whatever container it was attached to originally. If the</span></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment">     *  new container is the NULL pointer, the iterator is left</span></div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="comment">     *  unattached.</span></div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="comment">     */</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keywordtype">void</span></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <a class="code" href="a08727.html#a78f52529ca9957c3f87afb0920456374">_M_attach</a>(_Safe_sequence_base* __seq, <span class="keywordtype">bool</span> __constant);</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="comment">    /** Likewise, but not thread-safe. */</span></div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="keywordtype">void</span></div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <a class="code" href="a08727.html#a1d77bdc38465edcace6943056f867725">_M_attach_single</a>(_Safe_sequence_base* __seq, <span class="keywordtype">bool</span> __constant) throw ();</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="comment">    /** Detach the iterator for whatever container it is attached to,</span></div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="comment">     *  if any.</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="comment">    */</span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keywordtype">void</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <a class="code" href="a08727.html#ad88baf5072fed556979aaf901b3dfafd">_M_detach</a>();</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="comment">    /** Likewise, but not thread-safe. */</span></div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keywordtype">void</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <a class="code" href="a08727.html#a78cee76dec3476ad6c790e55d00eef46">_M_detach_single</a>() throw ();</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  };</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="comment">  /**</span></div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="comment">   * @brief Base class that supports tracking of local iterators that</span></div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="comment">   * reference an unordered container.</span></div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="comment">   *</span></div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="comment">   * The %_Safe_unordered_container_base class provides basic support for</span></div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="comment">   * tracking iterators into an unordered container. Containers that track</span></div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="comment">   * iterators must derived from %_Safe_unordered_container_base publicly, so</span></div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="comment">   * that safe iterators (which inherit _Safe_iterator_base) can</span></div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="comment">   * attach to them. This class contains four linked lists of</span></div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="comment">   * iterators, one for constant iterators, one for mutable</span></div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="comment">   * iterators, one for constant local iterators, one for mutable local</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="comment">   * iterators and a version number that allows very fast</span></div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="comment">   * invalidation of all iterators that reference the container.</span></div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="comment">   *</span></div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="comment">   * This class must ensure that no operation on it may throw an</span></div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="comment">   * exception, otherwise @a safe containers may fail to provide the</span></div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="comment">   * exception-safety guarantees required by the C++ standard.</span></div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="comment">   */</span></div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="a08731.html">  120</a></span>&#160;  class <a class="code" href="a08731.html">_Safe_unordered_container_base</a> : public <a class="code" href="a08687.html">_Safe_sequence_base</a></div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;  {</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a08727.html">_Safe_local_iterator_base</a>;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keyword">typedef</span> <a class="code" href="a08687.html">_Safe_sequence_base</a> <a class="code" href="a08687.html">_Base</a>;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;  <span class="keyword">public</span>:<span class="comment"></span></div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="comment">    /// The list of mutable local iterators that reference this container</span></div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="a08731.html#ad62db24fbffa1fb93099351281b7ce65">  127</a></span>&#160;<span class="comment"></span>    <a class="code" href="a08683.html">_Safe_iterator_base</a>* <a class="code" href="a08731.html#ad62db24fbffa1fb93099351281b7ce65">_M_local_iterators</a>;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="comment">    /// The list of constant local iterators that reference this container</span></div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="a08731.html#aada883d3554a2f87ca780c2457c09d5d">  130</a></span>&#160;<span class="comment"></span>    <a class="code" href="a08683.html">_Safe_iterator_base</a>* <a class="code" href="a08731.html#aada883d3554a2f87ca780c2457c09d5d">_M_const_local_iterators</a>;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;  <span class="keyword">protected</span>:</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="comment">// Initialize with a version number of 1 and no iterators</span></div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <a class="code" href="a08731.html">_Safe_unordered_container_base</a>() noexcept</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    : _M_local_iterators(<span class="keywordtype">nullptr</span>), _M_const_local_iterators(<span class="keywordtype">nullptr</span>)</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    { }</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <span class="comment">// Copy constructor does not copy iterators.</span></div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <a class="code" href="a08731.html">_Safe_unordered_container_base</a>(<span class="keyword">const</span> <a class="code" href="a08731.html">_Safe_unordered_container_base</a>&amp;)</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    noexcept</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    : <a class="code" href="a08731.html">_Safe_unordered_container_base</a>() { }</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="comment">// When moved unordered containers iterators are swapped.</span></div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    _Safe_unordered_container_base(_Safe_unordered_container_base&amp;&amp; __x)</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    noexcept</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    : _Safe_unordered_container_base()</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    { this-&gt;_M_swap(__x); }</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="comment">    /** Notify all iterators that reference this container that the</span></div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="comment">        container is being destroyed. */</span></div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="a08731.html#a918ae91156e92a8701da15fc61d05b63">  151</a></span>&#160;    <a class="code" href="a08731.html#a918ae91156e92a8701da15fc61d05b63">~_Safe_unordered_container_base</a>() noexcept</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    { this-&gt;_M_detach_all(); }</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="comment">    /** Detach all iterators, leaving them singular. */</span></div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordtype">void</span></div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    _M_detach_all();</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="comment">    /** Swap this container with the given container. This operation</span></div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="comment">     *  also swaps ownership of the iterators, so that when the</span></div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="comment">     *  operation is complete all iterators that originally referenced</span></div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="comment">     *  one container now reference the other container.</span></div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="comment">     */</span></div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keywordtype">void</span></div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    _M_swap(<a class="code" href="a08731.html">_Safe_unordered_container_base</a>&amp; __x) noexcept;</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;  <span class="keyword">private</span>:<span class="comment"></span></div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="comment">    /** Attach an iterator to this container. */</span></div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <span class="keywordtype">void</span></div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    _M_attach_local(<a class="code" href="a08683.html">_Safe_iterator_base</a>* __it, <span class="keywordtype">bool</span> __constant);</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="comment">    /** Likewise but not thread safe. */</span></div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    <span class="keywordtype">void</span></div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    _M_attach_local_single(<a class="code" href="a08683.html">_Safe_iterator_base</a>* __it, <span class="keywordtype">bool</span> __constant) <span class="keywordflow">throw</span> ();</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="comment">    /** Detach an iterator from this container */</span></div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="keywordtype">void</span></div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    _M_detach_local(<a class="code" href="a08683.html">_Safe_iterator_base</a>* __it);</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="comment">    /** Likewise but not thread safe. */</span></div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    <span class="keywordtype">void</span></div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    _M_detach_local_single(<a class="code" href="a08683.html">_Safe_iterator_base</a>* __it) <span class="keywordflow">throw</span> ();</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;  };</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;} <span class="comment">// namespace __gnu_debug</span></div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="a01571_html"><div class="ttname"><a href="a01571.html">__gnu_debug</a></div><div class="ttdoc">GNU debug classes for public use.</div></div>
<div class="ttc" id="a08687_html"><div class="ttname"><a href="a08687.html">__gnu_debug::_Safe_sequence_base</a></div><div class="ttdoc">Base class that supports tracking of iterators that reference a sequence.</div><div class="ttdef"><b>Definition:</b> <a href="a00770_source.html#l00188">safe_base.h:188</a></div></div>
<div class="ttc" id="a08727_html_aba66dde2adb286395bcb7714f32e64d9"><div class="ttname"><a href="a08727.html#aba66dde2adb286395bcb7714f32e64d9">__gnu_debug::_Safe_local_iterator_base::_Safe_local_iterator_base</a></div><div class="ttdeci">_Safe_local_iterator_base(const _Safe_local_iterator_base &amp;__x, bool __constant)</div><div class="ttdef"><b>Definition:</b> <a href="a00794_source.html#l00070">safe_unordered_base.h:70</a></div></div>
<div class="ttc" id="a08731_html_aada883d3554a2f87ca780c2457c09d5d"><div class="ttname"><a href="a08731.html#aada883d3554a2f87ca780c2457c09d5d">__gnu_debug::_Safe_unordered_container_base::_M_const_local_iterators</a></div><div class="ttdeci">_Safe_iterator_base * _M_const_local_iterators</div><div class="ttdoc">The list of constant local iterators that reference this container.</div><div class="ttdef"><b>Definition:</b> <a href="a00794_source.html#l00130">safe_unordered_base.h:130</a></div></div>
<div class="ttc" id="a08683_html"><div class="ttname"><a href="a08683.html">__gnu_debug::_Safe_iterator_base</a></div><div class="ttdoc">Basic functionality for a safe iterator.</div><div class="ttdef"><b>Definition:</b> <a href="a00770_source.html#l00050">safe_base.h:50</a></div></div>
<div class="ttc" id="a00770_html"><div class="ttname"><a href="a00770.html">safe_base.h</a></div></div>
<div class="ttc" id="a08727_html_ad7d51ed8396149f6d4d44e9bbf48ddf3"><div class="ttname"><a href="a08727.html#ad7d51ed8396149f6d4d44e9bbf48ddf3">__gnu_debug::_Safe_local_iterator_base::_Safe_local_iterator_base</a></div><div class="ttdeci">_Safe_local_iterator_base()</div><div class="ttdef"><b>Definition:</b> <a href="a00794_source.html#l00054">safe_unordered_base.h:54</a></div></div>
<div class="ttc" id="a08727_html_ad88baf5072fed556979aaf901b3dfafd"><div class="ttname"><a href="a08727.html#ad88baf5072fed556979aaf901b3dfafd">__gnu_debug::_Safe_local_iterator_base::_M_detach</a></div><div class="ttdeci">void _M_detach()</div></div>
<div class="ttc" id="a08731_html_a918ae91156e92a8701da15fc61d05b63"><div class="ttname"><a href="a08731.html#a918ae91156e92a8701da15fc61d05b63">__gnu_debug::_Safe_unordered_container_base::~_Safe_unordered_container_base</a></div><div class="ttdeci">~_Safe_unordered_container_base() noexcept</div><div class="ttdef"><b>Definition:</b> <a href="a00794_source.html#l00151">safe_unordered_base.h:151</a></div></div>
<div class="ttc" id="a08727_html_a78cee76dec3476ad6c790e55d00eef46"><div class="ttname"><a href="a08727.html#a78cee76dec3476ad6c790e55d00eef46">__gnu_debug::_Safe_local_iterator_base::_M_detach_single</a></div><div class="ttdeci">void _M_detach_single()</div></div>
<div class="ttc" id="a08731_html"><div class="ttname"><a href="a08731.html">__gnu_debug::_Safe_unordered_container_base</a></div><div class="ttdoc">Base class that supports tracking of local iterators that reference an unordered container.</div><div class="ttdef"><b>Definition:</b> <a href="a00794_source.html#l00120">safe_unordered_base.h:120</a></div></div>
<div class="ttc" id="a08683_html_a0ee820218a8e43841a84d866dc94f1e3"><div class="ttname"><a href="a08683.html#a0ee820218a8e43841a84d866dc94f1e3">__gnu_debug::_Safe_iterator_base::_M_sequence</a></div><div class="ttdeci">_Safe_sequence_base * _M_sequence</div><div class="ttdef"><b>Definition:</b> <a href="a00770_source.html#l00057">safe_base.h:57</a></div></div>
<div class="ttc" id="a08727_html_a78f52529ca9957c3f87afb0920456374"><div class="ttname"><a href="a08727.html#a78f52529ca9957c3f87afb0920456374">__gnu_debug::_Safe_local_iterator_base::_M_attach</a></div><div class="ttdeci">void _M_attach(_Safe_sequence_base *__seq, bool __constant)</div></div>
<div class="ttc" id="a08727_html_a7958bccd20b93cf3f6cffc4ed922346d"><div class="ttname"><a href="a08727.html#a7958bccd20b93cf3f6cffc4ed922346d">__gnu_debug::_Safe_local_iterator_base::_Safe_local_iterator_base</a></div><div class="ttdeci">_Safe_local_iterator_base(const _Safe_sequence_base *__seq, bool __constant)</div><div class="ttdef"><b>Definition:</b> <a href="a00794_source.html#l00064">safe_unordered_base.h:64</a></div></div>
<div class="ttc" id="a08727_html"><div class="ttname"><a href="a08727.html">__gnu_debug::_Safe_local_iterator_base</a></div><div class="ttdoc">Basic functionality for a safe iterator.</div><div class="ttdef"><b>Definition:</b> <a href="a00794_source.html#l00050">safe_unordered_base.h:50</a></div></div>
<div class="ttc" id="a08727_html_a1d77bdc38465edcace6943056f867725"><div class="ttname"><a href="a08727.html#a1d77bdc38465edcace6943056f867725">__gnu_debug::_Safe_local_iterator_base::_M_attach_single</a></div><div class="ttdeci">void _M_attach_single(_Safe_sequence_base *__seq, bool __constant)</div></div>
<div class="ttc" id="a08731_html_ad62db24fbffa1fb93099351281b7ce65"><div class="ttname"><a href="a08731.html#ad62db24fbffa1fb93099351281b7ce65">__gnu_debug::_Safe_unordered_container_base::_M_local_iterators</a></div><div class="ttdeci">_Safe_iterator_base * _M_local_iterators</div><div class="ttdoc">The list of mutable local iterators that reference this container.</div><div class="ttdef"><b>Definition:</b> <a href="a00794_source.html#l00127">safe_unordered_base.h:127</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_47f59b4ef76325ed55a7fd4bed4be05b.html">include</a></li><li class="navelem"><a class="el" href="dir_fe0a9a346b67db3c5b97f6d7f72a0ee2.html">debug</a></li><li class="navelem"><a class="el" href="a00794.html">safe_unordered_base.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>