Updated the website built from mesos SHA: be47e96.

Project: http://git-wip-us.apache.org/repos/asf/mesos-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos-site/commit/e7ea521f
Tree: http://git-wip-us.apache.org/repos/asf/mesos-site/tree/e7ea521f
Diff: http://git-wip-us.apache.org/repos/asf/mesos-site/diff/e7ea521f

Branch: refs/heads/asf-site
Commit: e7ea521f257f5cf3fd012a9f1b9348c2e01d469c
Parents: dcf3549
Author: jenkins <bui...@apache.org>
Authored: Mon Apr 9 19:34:02 2018 +0000
Committer: jenkins <bui...@apache.org>
Committed: Mon Apr 9 19:34:02 2018 +0000

----------------------------------------------------------------------
 content/api/latest/c++/Nodes.xml                |  10 +
 content/api/latest/c++/Tokens.xml               |  20 ++
 content/api/latest/c++/globals_func.html        |  17 +-
 content/api/latest/c++/globals_o.html           |  15 +-
 content/api/latest/c++/hashset_8hpp.html        |  62 ++++++
 content/api/latest/c++/hashset_8hpp_source.html |   4 +-
 content/api/latest/c++/index.hhc                |   2 +
 content/api/latest/c++/index.hhk                | 192 +++++++++----------
 content/blog/feed.xml                           |   2 +-
 .../index.html                                  |   2 +-
 10 files changed, 211 insertions(+), 115 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e7ea521f/content/api/latest/c++/Nodes.xml
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/Nodes.xml b/content/api/latest/c++/Nodes.xml
index 5f2f81b..5fa7d24 100644
--- a/content/api/latest/c++/Nodes.xml
+++ b/content/api/latest/c++/Nodes.xml
@@ -56619,6 +56619,16 @@
                       </Subnodes>
                      </Node>
                      <Node>
+                      <Name>operator-</Name>
+                      <Path>hashset_8hpp.html</Path>
+                      <Anchor>a30485eb6718c099e2094b4d8faeb9fd7</Anchor>
+                     </Node>
+                     <Node>
+                      <Name>operator-=</Name>
+                      <Path>hashset_8hpp.html</Path>
+                      <Anchor>a761a5f00fe185fac8193d7a8b6e220ac</Anchor>
+                     </Node>
+                     <Node>
                       <Name>operator|</Name>
                       <Path>hashset_8hpp.html</Path>
                       <Anchor>a53a97a073752b7f6a47909ee2155b317</Anchor>

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e7ea521f/content/api/latest/c++/Tokens.xml
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/Tokens.xml 
b/content/api/latest/c++/Tokens.xml
index 4ff3035..49420fa 100644
--- a/content/api/latest/c++/Tokens.xml
+++ b/content/api/latest/c++/Tokens.xml
@@ -4878,6 +4878,26 @@
   </Token>
   <Token>
     <TokenIdentifier>
+      <Name>operator-</Name>
+      <APILanguage>c</APILanguage>
+      <Type>func</Type>
+    </TokenIdentifier>
+    <Path>hashset_8hpp.html</Path>
+    <Anchor>a30485eb6718c099e2094b4d8faeb9fd7</Anchor>
+    <DeclaredIn>hashset.hpp</DeclaredIn>
+  </Token>
+  <Token>
+    <TokenIdentifier>
+      <Name>operator-=</Name>
+      <APILanguage>c</APILanguage>
+      <Type>func</Type>
+    </TokenIdentifier>
+    <Path>hashset_8hpp.html</Path>
+    <Anchor>a761a5f00fe185fac8193d7a8b6e220ac</Anchor>
+    <DeclaredIn>hashset.hpp</DeclaredIn>
+  </Token>
+  <Token>
+    <TokenIdentifier>
       <Name>getgrgid</Name>
       <APILanguage>c</APILanguage>
       <Type>func</Type>

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e7ea521f/content/api/latest/c++/globals_func.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/globals_func.html 
b/content/api/latest/c++/globals_func.html
index b471194..081a6b5 100644
--- a/content/api/latest/c++/globals_func.html
+++ b/content/api/latest/c++/globals_func.html
@@ -299,8 +299,12 @@
 , <a class="el" 
href="set_8hpp.html#ae4b41d88a9f4da186c2de7787c96b01d">set.hpp</a>
 </li>
 <li>operator-()
-: <a class="el" 
href="bytes_8hpp.html#a1b13dd560e830b9dd9c82da3ef2175b4">bytes.hpp</a>
+: <a class="el" 
href="hashset_8hpp.html#a30485eb6718c099e2094b4d8faeb9fd7">hashset.hpp</a>
 , <a class="el" 
href="interval_8hpp.html#af982abe5d2d4a4505fabc0d59195bddc">interval.hpp</a>
+, <a class="el" 
href="bytes_8hpp.html#a1b13dd560e830b9dd9c82da3ef2175b4">bytes.hpp</a>
+</li>
+<li>operator-=()
+: <a class="el" 
href="hashset_8hpp.html#a761a5f00fe185fac8193d7a8b6e220ac">hashset.hpp</a>
 </li>
 <li>operator/()
 : <a class="el" 
href="bytes_8hpp.html#a7e600e17fc1650a8f0ad974e382a2926">bytes.hpp</a>
@@ -309,15 +313,14 @@
 : <a class="el" 
href="path_8hpp.html#a71e4826c717e331e929eec4f3f01998d">path.hpp</a>
 </li>
 <li>operator&lt;&lt;()
-: <a class="el" 
href="3rdparty_2stout_2include_2stout_2cache_8hpp.html#ab9400877fa66b8546bc4d4711f86c144">cache.hpp</a>
-, <a class="el" 
href="duration_8hpp.html#aae42b4c6bc1b2a3b493f1c306afe7522">duration.hpp</a>
+: <a class="el" 
href="hashmap_8hpp.html#a9c94b6ec332534717bbc65377844a9fb">hashmap.hpp</a>
 , <a class="el" 
href="interval_8hpp.html#aa84764c6f588f3437249eaada5808dab">interval.hpp</a>
-, <a class="el" 
href="bytes_8hpp.html#a5e87dde1f7de1550205527b0a837d2a1">bytes.hpp</a>
+, <a class="el" 
href="duration_8hpp.html#aae42b4c6bc1b2a3b493f1c306afe7522">duration.hpp</a>
 , <a class="el" 
href="3rdparty_2stout_2include_2stout_2version_8hpp.html#a6868b46a8ba132a83ed5fc72c91bcdb0">version.hpp</a>
-, <a class="el" 
href="path_8hpp.html#a2ec9a8258175592b62eb0df607badc6d">path.hpp</a>
 , <a class="el" 
href="variant_8hpp.html#a3ff1e8a4b8f3e1f085626f42351f8550">variant.hpp</a>
-, <a class="el" 
href="hashmap_8hpp.html#a9c94b6ec332534717bbc65377844a9fb">hashmap.hpp</a>
-, <a class="el" 
href="interval_8hpp.html#acd3d17d3107094a6ad8ac87c99d85e17">interval.hpp</a>
+, <a class="el" 
href="path_8hpp.html#a2ec9a8258175592b62eb0df607badc6d">path.hpp</a>
+, <a class="el" 
href="bytes_8hpp.html#a5e87dde1f7de1550205527b0a837d2a1">bytes.hpp</a>
+, <a class="el" 
href="3rdparty_2stout_2include_2stout_2cache_8hpp.html#ab9400877fa66b8546bc4d4711f86c144">cache.hpp</a>
 </li>
 <li>operator&lt;=()
 : <a class="el" 
href="path_8hpp.html#ae108a381c03097c921ee17af0f248c02">path.hpp</a>

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e7ea521f/content/api/latest/c++/globals_o.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/globals_o.html 
b/content/api/latest/c++/globals_o.html
index a4060f1..45714ef 100644
--- a/content/api/latest/c++/globals_o.html
+++ b/content/api/latest/c++/globals_o.html
@@ -125,8 +125,12 @@
 </li>
 <li>operator-()
 : <a class="el" 
href="bytes_8hpp.html#a1b13dd560e830b9dd9c82da3ef2175b4">bytes.hpp</a>
+, <a class="el" 
href="hashset_8hpp.html#a30485eb6718c099e2094b4d8faeb9fd7">hashset.hpp</a>
 , <a class="el" 
href="interval_8hpp.html#af982abe5d2d4a4505fabc0d59195bddc">interval.hpp</a>
 </li>
+<li>operator-=()
+: <a class="el" 
href="hashset_8hpp.html#a761a5f00fe185fac8193d7a8b6e220ac">hashset.hpp</a>
+</li>
 <li>operator/()
 : <a class="el" 
href="bytes_8hpp.html#a7e600e17fc1650a8f0ad974e382a2926">bytes.hpp</a>
 </li>
@@ -135,13 +139,14 @@
 </li>
 <li>operator&lt;&lt;()
 : <a class="el" 
href="variant_8hpp.html#a3ff1e8a4b8f3e1f085626f42351f8550">variant.hpp</a>
-, <a class="el" 
href="bytes_8hpp.html#a5e87dde1f7de1550205527b0a837d2a1">bytes.hpp</a>
 , <a class="el" 
href="3rdparty_2stout_2include_2stout_2cache_8hpp.html#ab9400877fa66b8546bc4d4711f86c144">cache.hpp</a>
+, <a class="el" 
href="3rdparty_2stout_2include_2stout_2version_8hpp.html#a6868b46a8ba132a83ed5fc72c91bcdb0">version.hpp</a>
+, <a class="el" 
href="interval_8hpp.html#acd3d17d3107094a6ad8ac87c99d85e17">interval.hpp</a>
+, <a class="el" 
href="bytes_8hpp.html#a5e87dde1f7de1550205527b0a837d2a1">bytes.hpp</a>
+, <a class="el" 
href="interval_8hpp.html#aa84764c6f588f3437249eaada5808dab">interval.hpp</a>
 , <a class="el" 
href="duration_8hpp.html#aae42b4c6bc1b2a3b493f1c306afe7522">duration.hpp</a>
 , <a class="el" 
href="hashmap_8hpp.html#a9c94b6ec332534717bbc65377844a9fb">hashmap.hpp</a>
 , <a class="el" 
href="path_8hpp.html#a2ec9a8258175592b62eb0df607badc6d">path.hpp</a>
-, <a class="el" 
href="interval_8hpp.html#aa84764c6f588f3437249eaada5808dab">interval.hpp</a>
-, <a class="el" 
href="3rdparty_2stout_2include_2stout_2version_8hpp.html#a6868b46a8ba132a83ed5fc72c91bcdb0">version.hpp</a>
 </li>
 <li>operator&lt;=()
 : <a class="el" 
href="path_8hpp.html#ae108a381c03097c921ee17af0f248c02">path.hpp</a>
@@ -156,8 +161,8 @@
 : <a class="el" 
href="path_8hpp.html#a0a79d7788a7f0189a4a5b69b73dce859">path.hpp</a>
 </li>
 <li>operator|()
-: <a class="el" 
href="hashset_8hpp.html#a53a97a073752b7f6a47909ee2155b317">hashset.hpp</a>
-, <a class="el" 
href="set_8hpp.html#ab839ef994460fbd16cf25a05aeab4824">set.hpp</a>
+: <a class="el" 
href="set_8hpp.html#ab839ef994460fbd16cf25a05aeab4824">set.hpp</a>
+, <a class="el" 
href="hashset_8hpp.html#a53a97a073752b7f6a47909ee2155b317">hashset.hpp</a>
 </li>
 <li>operator|=()
 : <a class="el" 
href="hashset_8hpp.html#ae7e3e706ea5528830e2846625e52c3d1">hashset.hpp</a>

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e7ea521f/content/api/latest/c++/hashset_8hpp.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/hashset_8hpp.html 
b/content/api/latest/c++/hashset_8hpp.html
index 0ad9c44..02a6d63 100644
--- a/content/api/latest/c++/hashset_8hpp.html
+++ b/content/api/latest/c++/hashset_8hpp.html
@@ -78,8 +78,70 @@ Functions</h2></td></tr>
 <tr class="memitem:ae7e3e706ea5528830e2846625e52c3d1"><td 
class="memTemplParams" colspan="2">template&lt;typename Elem , typename Hash , 
typename Equal &gt; </td></tr>
 <tr class="memitem:ae7e3e706ea5528830e2846625e52c3d1"><td 
class="memTemplItemLeft" align="right" valign="top"><a class="el" 
href="classhashset.html">hashset</a>&lt; Elem, Hash, Equal &gt; 
&amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" 
href="hashset_8hpp.html#ae7e3e706ea5528830e2846625e52c3d1">operator|=</a> (<a 
class="el" href="classhashset.html">hashset</a>&lt; Elem, Hash, Equal &gt; 
&amp;left, const <a class="el" href="classhashset.html">hashset</a>&lt; Elem, 
Hash, Equal &gt; &amp;right)</td></tr>
 <tr class="separator:ae7e3e706ea5528830e2846625e52c3d1"><td 
class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a30485eb6718c099e2094b4d8faeb9fd7"><td 
class="memTemplParams" colspan="2">template&lt;typename Elem , typename Hash , 
typename Equal &gt; </td></tr>
+<tr class="memitem:a30485eb6718c099e2094b4d8faeb9fd7"><td 
class="memTemplItemLeft" align="right" valign="top"><a class="el" 
href="classhashset.html">hashset</a>&lt; Elem, Hash, Equal &gt;&#160;</td><td 
class="memTemplItemRight" valign="bottom"><a class="el" 
href="hashset_8hpp.html#a30485eb6718c099e2094b4d8faeb9fd7">operator-</a> (const 
<a class="el" href="classhashset.html">hashset</a>&lt; Elem, Hash, Equal &gt; 
&amp;left, const <a class="el" href="classhashset.html">hashset</a>&lt; Elem, 
Hash, Equal &gt; &amp;right)</td></tr>
+<tr class="separator:a30485eb6718c099e2094b4d8faeb9fd7"><td 
class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a761a5f00fe185fac8193d7a8b6e220ac"><td 
class="memTemplParams" colspan="2">template&lt;typename Elem , typename Hash , 
typename Equal &gt; </td></tr>
+<tr class="memitem:a761a5f00fe185fac8193d7a8b6e220ac"><td 
class="memTemplItemLeft" align="right" valign="top"><a class="el" 
href="classhashset.html">hashset</a>&lt; Elem, Hash, Equal &gt; 
&amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" 
href="hashset_8hpp.html#a761a5f00fe185fac8193d7a8b6e220ac">operator-=</a> (<a 
class="el" href="classhashset.html">hashset</a>&lt; Elem, Hash, Equal &gt; 
&amp;left, const <a class="el" href="classhashset.html">hashset</a>&lt; Elem, 
Hash, Equal &gt; &amp;right)</td></tr>
+<tr class="separator:a761a5f00fe185fac8193d7a8b6e220ac"><td 
class="memSeparator" colspan="2">&#160;</td></tr>
 </table>
 <h2 class="groupheader">Function Documentation</h2>
+<a class="anchor" id="a30485eb6718c099e2094b4d8faeb9fd7"></a>
+<div class="memitem">
+<div class="memproto">
+<div class="memtemplate">
+template&lt;typename Elem , typename Hash , typename Equal &gt; </div>
+      <table class="memname">
+        <tr>
+          <td class="memname"><a class="el" 
href="classhashset.html">hashset</a>&lt;Elem, Hash, Equal&gt; operator- </td>
+          <td>(</td>
+          <td class="paramtype">const <a class="el" 
href="classhashset.html">hashset</a>&lt; Elem, Hash, Equal &gt; &amp;&#160;</td>
+          <td class="paramname"><em>left</em>, </td>
+        </tr>
+        <tr>
+          <td class="paramkey"></td>
+          <td></td>
+          <td class="paramtype">const <a class="el" 
href="classhashset.html">hashset</a>&lt; Elem, Hash, Equal &gt; &amp;&#160;</td>
+          <td class="paramname"><em>right</em>&#160;</td>
+        </tr>
+        <tr>
+          <td></td>
+          <td>)</td>
+          <td></td><td></td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+</div>
+</div>
+<a class="anchor" id="a761a5f00fe185fac8193d7a8b6e220ac"></a>
+<div class="memitem">
+<div class="memproto">
+<div class="memtemplate">
+template&lt;typename Elem , typename Hash , typename Equal &gt; </div>
+      <table class="memname">
+        <tr>
+          <td class="memname"><a class="el" 
href="classhashset.html">hashset</a>&lt;Elem, Hash, Equal&gt;&amp; operator-= 
</td>
+          <td>(</td>
+          <td class="paramtype"><a class="el" 
href="classhashset.html">hashset</a>&lt; Elem, Hash, Equal &gt; &amp;&#160;</td>
+          <td class="paramname"><em>left</em>, </td>
+        </tr>
+        <tr>
+          <td class="paramkey"></td>
+          <td></td>
+          <td class="paramtype">const <a class="el" 
href="classhashset.html">hashset</a>&lt; Elem, Hash, Equal &gt; &amp;&#160;</td>
+          <td class="paramname"><em>right</em>&#160;</td>
+        </tr>
+        <tr>
+          <td></td>
+          <td>)</td>
+          <td></td><td></td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+</div>
+</div>
 <a class="anchor" id="a53a97a073752b7f6a47909ee2155b317"></a>
 <div class="memitem">
 <div class="memproto">

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e7ea521f/content/api/latest/c++/hashset_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/hashset_8hpp_source.html 
b/content/api/latest/c++/hashset_8hpp_source.html
index 32fe8e1..8588b16 100644
--- a/content/api/latest/c++/hashset_8hpp_source.html
+++ b/content/api/latest/c++/hashset_8hpp_source.html
@@ -52,15 +52,17 @@
 <div class="title">hashset.hpp</div>  </div>
 </div><!--header-->
 <div class="contents">
-<a href="hashset_8hpp.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">// Licensed under the Apache License, 
Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a 
name="l00002"></a><span class="lineno">    2</span>&#160;<span 
class="comment">// you may not use this file except in compliance with the 
License.</span></div><div class="line"><a name="l00003"></a><span 
class="lineno">    3</span>&#160;<span class="comment">// You may obtain a copy 
of the License at</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">//  http://www.apache.org/licenses/LICENSE-2.0</span></div><div 
class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span 
class="comment">//</span
 ></div><div class="line"><a name="l00007"></a><span class="lineno">    
 >7</span>&#160;<span class="comment">// Unless required by applicable law or 
 >agreed to in writing, software</span></div><div class="line"><a 
 >name="l00008"></a><span class="lineno">    8</span>&#160;<span 
 >class="comment">// distributed under the License is distributed on an 
 >&quot;AS IS&quot; BASIS,</span></div><div class="line"><a 
 >name="l00009"></a><span class="lineno">    9</span>&#160;<span 
 >class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 
 >express or implied.</span></div><div class="line"><a name="l00010"></a><span 
 >class="lineno">   10</span>&#160;<span class="comment">// See the License for 
 >the specific language governing permissions and</span></div><div 
 >class="line"><a name="l00011"></a><span class="lineno">   
 >11</span>&#160;<span class="comment">// limitations under the 
 >License.</span></div><div class="line"><a name="l00012"></a><span 
 >class="lineno">   12</span>&#160;</div><div class="lin
 e"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span 
class="preprocessor">#ifndef __STOUT_HASHSET_HPP__</span></div><div 
class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span 
class="preprocessor">#define __STOUT_HASHSET_HPP__</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="preprocessor">#include 
&lt;set&gt;</span></div><div class="line"><a name="l00017"></a><span 
class="lineno">   17</span>&#160;<span class="preprocessor">#include 
&lt;unordered_set&gt;</span></div><div class="line"><a name="l00018"></a><span 
class="lineno">   18</span>&#160;<span class="preprocessor">#include 
&lt;utility&gt;</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="preprocessor">#include &lt;boos
 t/get_pointer.hpp&gt;</span></div><div class="line"><a name="l00021"></a><span 
class="lineno">   21</span>&#160;</div><div class="line"><a 
name="l00022"></a><span class="lineno">   22</span>&#160;<span 
class="preprocessor">#include &quot;<a class="code" 
href="foreach_8hpp.html">foreach.hpp</a>&quot;</span></div><div class="line"><a 
name="l00023"></a><span class="lineno">   23</span>&#160;</div><div 
class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span 
class="comment">// Prior to C++14 we can&#39;t use an enum type as the key to 
any</span></div><div class="line"><a name="l00025"></a><span class="lineno">   
25</span>&#160;<span class="comment">// hash-based collection because of a 
defect in the standard. See</span></div><div class="line"><a 
name="l00026"></a><span class="lineno">   26</span>&#160;<span 
class="comment">// www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#2148 
for more</span></div><div class="line"><a name="l00027"></a><span 
class="lineno"> 
   27</span>&#160;<span class="comment">// details. The workaround for now is 
to use the following hash</span></div><div class="line"><a 
name="l00028"></a><span class="lineno">   28</span>&#160;<span 
class="comment">// function when using an enum.</span></div><div 
class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span 
class="comment">//</span></div><div class="line"><a name="l00030"></a><span 
class="lineno">   30</span>&#160;<span class="comment">// TODO(benh): Remove 
this once we move to C++14.</span></div><div class="line"><a 
name="l00031"></a><span class="lineno"><a class="line" 
href="structEnumClassHash.html">   31</a></span>&#160;<span 
class="keyword">struct </span><a class="code" 
href="structEnumClassHash.html">EnumClassHash</a></div><div class="line"><a 
name="l00032"></a><span class="lineno">   32</span>&#160;{</div><div 
class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;  
<span class="keyword">template</span> &lt;<span class="keyw
 ord">typename</span> T&gt;</div><div class="line"><a name="l00034"></a><span 
class="lineno"><a class="line" 
href="structEnumClassHash.html#a02ef43aab3f3004ec306c58d3ebd423a">   
34</a></span>&#160;  std::size_t <a class="code" 
href="structEnumClassHash.html#a02ef43aab3f3004ec306c58d3ebd423a">operator()</a>(T
 t)<span class="keyword"> const</span></div><div class="line"><a 
name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword"> 
 </span>{</div><div class="line"><a name="l00036"></a><span class="lineno">   
36</span>&#160;    static_assert(</div><div class="line"><a 
name="l00037"></a><span class="lineno">   37</span>&#160;        <span 
class="keyword">sizeof</span>(<span class="keyword">typename</span> <a 
class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">std::underlying_type&lt;T&gt;::type</a>)
 &lt;= <span class="keyword">sizeof</span>(std::size_t),</div><div 
class="line"><a name="l00038"></a><span class="lineno">   38</spa
 n>&#160;        <span class="stringliteral">&quot;Expecting enum type to be 
convertible to std::size_t&quot;</span>);</div><div class="line"><a 
name="l00039"></a><span class="lineno">   39</span>&#160;    <span 
class="keywordflow">return</span> <span 
class="keyword">static_cast&lt;</span>std::size_t<span 
class="keyword">&gt;</span>(t);</div><div class="line"><a 
name="l00040"></a><span class="lineno">   40</span>&#160;  }</div><div 
class="line"><a name="l00041"></a><span class="lineno">   
41</span>&#160;};</div><div class="line"><a name="l00042"></a><span 
class="lineno">   42</span>&#160;</div><div class="line"><a 
name="l00043"></a><span class="lineno">   43</span>&#160;</div><div 
class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span 
class="comment">// Provides a hash set via &#39;std::unordered_set&#39;. We 
inherit from it to add</span></div><div class="line"><a name="l00045"></a><span 
class="lineno">   45</span>&#160;<span class="comment">// new functions a
 s well as to provide better naming for some of the</span></div><div 
class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span 
class="comment">// existing functions.</span></div><div class="line"><a 
name="l00047"></a><span class="lineno">   47</span>&#160;<span 
class="keyword">template</span> &lt;<span class="keyword">typename</span> 
Elem,</div><div class="line"><a name="l00048"></a><span class="lineno">   
48</span>&#160;          <span class="keyword">typename</span> Hash = <span 
class="keyword">typename</span> std::conditional&lt;</div><div class="line"><a 
name="l00049"></a><span class="lineno">   49</span>&#160;            
std::is_enum&lt;Elem&gt;::value,</div><div class="line"><a 
name="l00050"></a><span class="lineno">   50</span>&#160;            <a 
class="code" href="structEnumClassHash.html">EnumClassHash</a>,</div><div 
class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;       
     std::hash&lt;Elem&gt;&gt;<a class="code" href="namesp
 
acemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>,</div><div
 class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;      
    <span class="keyword">typename</span> Equal = 
std::equal_to&lt;Elem&gt;&gt;</div><div class="line"><a name="l00053"></a><span 
class="lineno"><a class="line" href="classhashset.html">   
53</a></span>&#160;<span class="keyword">class </span><a class="code" 
href="classhashset.html">hashset</a> : <span class="keyword">public</span> 
std::unordered_set&lt;Elem, Hash, Equal&gt;</div><div class="line"><a 
name="l00054"></a><span class="lineno">   54</span>&#160;{</div><div 
class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span 
class="keyword">public</span>:</div><div class="line"><a 
name="l00056"></a><span class="lineno"><a class="line" 
href="classhashset.html#a5830fa996b2329b114e044fcd82ceeaa">   
56</a></span>&#160;  <span class="keyword">static</span> <span 
class="keyword">const</span> <a class="c
 ode" href="classhashset.html">hashset&lt;Elem, Hash, Equal&gt;</a>&amp; <a 
class="code" 
href="classhashset.html#a5830fa996b2329b114e044fcd82ceeaa">EMPTY</a>;</div><div 
class="line"><a name="l00057"></a><span class="lineno">   
57</span>&#160;</div><div class="line"><a name="l00058"></a><span 
class="lineno">   58</span>&#160;  <span class="comment">// An explicit default 
constructor is needed so</span></div><div class="line"><a 
name="l00059"></a><span class="lineno">   59</span>&#160;  <span 
class="comment">// &#39;const hashset&lt;T&gt; map;&#39; is not an 
error.</span></div><div class="line"><a name="l00060"></a><span 
class="lineno"><a class="line" 
href="classhashset.html#aac5c05ca1e801a6887c67dfe6a205090">   
60</a></span>&#160;  <a class="code" 
href="classhashset.html#aac5c05ca1e801a6887c67dfe6a205090">hashset</a>() 
{}</div><div class="line"><a name="l00061"></a><span class="lineno">   
61</span>&#160;</div><div class="line"><a name="l00062"></a><span 
class="lineno">   62</span>&#16
 0;  <span class="comment">// An implicit constructor for converting from a 
std::set.</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">   64</span>&#160;  
<span class="comment">// TODO(arojas): Allow any arbitrary type that supports 
&#39;begin()&#39;</span></div><div class="line"><a name="l00065"></a><span 
class="lineno">   65</span>&#160;  <span class="comment">// and &#39;end()&#39; 
passed into the specified &#39;emplace&#39;?</span></div><div class="line"><a 
name="l00066"></a><span class="lineno"><a class="line" 
href="classhashset.html#a08a3275f7d5ed4706681a5036550e11d">   
66</a></span>&#160;  <a class="code" 
href="classhashset.html#a08a3275f7d5ed4706681a5036550e11d">hashset</a>(<span 
class="keyword">const</span> std::set&lt;Elem&gt;&amp; <span 
class="keyword">set</span>)</div><div class="line"><a name="l00067"></a><span 
class="lineno">   67</
 span>&#160;  {</div><div class="line"><a name="l00068"></a><span 
class="lineno">   68</span>&#160;    std::unordered_set&lt;Elem, Hash, 
Equal&gt;::reserve(<span class="keyword">set</span>.<a class="code" 
href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">size</a>());</div><div
 class="line"><a name="l00069"></a><span class="lineno">   
69</span>&#160;</div><div class="line"><a name="l00070"></a><span 
class="lineno">   70</span>&#160;    <span class="keywordflow">for</span> 
(<span class="keyword">auto</span> iterator = <span 
class="keyword">set</span>.begin(); iterator != <span 
class="keyword">set</span>.end(); ++iterator) {</div><div class="line"><a 
name="l00071"></a><span class="lineno">   71</span>&#160;      
std::unordered_set&lt;Elem, Hash, Equal&gt;::emplace(*iterator);</div><div 
class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    
}</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;</div><div 
 >class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;  
 ><span class="comment">// An implicit constructor for converting from an 
 >r-value std::set.</span></div><div class="line"><a name="l00076"></a><span 
 >class="lineno">   76</span>&#160;  <span class="comment">//</span></div><div 
 >class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  
 ><span class="comment">// TODO(arojas): Allow any arbitrary type that supports 
 >&#39;begin()&#39;</span></div><div class="line"><a name="l00078"></a><span 
 >class="lineno">   78</span>&#160;  <span class="comment">// and 
 >&#39;end()&#39; passed into the specified &#39;insert&#39;?</span></div><div 
 >class="line"><a name="l00079"></a><span class="lineno"><a class="line" 
 >href="classhashset.html#a96337da127d7c4d69ff3b0ebae333e50">   
 >79</a></span>&#160;  <a class="code" 
 >href="classhashset.html#a96337da127d7c4d69ff3b0ebae333e50">hashset</a>(std::set&lt;Elem
 &gt;&amp;&amp; <span class="keyword">set</span>)</div><div class="line"><a 
name="l00080"></a><span class="lineno">   80</span>&#160;  {</div><div 
class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    
<span class="comment">// An implementation based on the move constructor of 
&#39;hashmap&#39;</span></div><div class="line"><a name="l00082"></a><span 
class="lineno">   82</span>&#160;    <span class="comment">// fails to compile 
on all major compilers except gcc 5.1 and up.</span></div><div class="line"><a 
name="l00083"></a><span class="lineno">   83</span>&#160;    <span 
class="comment">// See 
http://stackoverflow.com/q/31051466/118750?sem=2.</span></div><div 
class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    
std::unordered_set&lt;Elem, Hash, Equal&gt;::reserve(<span 
class="keyword">set</span>.<a class="code" 
href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">size</a>());</div><div
 class="line"><a name="l00085"></a><span 
 class="lineno">   85</span>&#160;</div><div class="line"><a 
name="l00086"></a><span class="lineno">   86</span>&#160;    <span 
class="keywordflow">for</span> (<span class="keyword">auto</span> iterator = 
<span class="keyword">set</span>.begin(); iterator != <span 
class="keyword">set</span>.end(); ++iterator) {</div><div class="line"><a 
name="l00087"></a><span class="lineno">   87</span>&#160;      
std::unordered_set&lt;Elem, Hash, 
Equal&gt;::emplace(std::move(*iterator));</div><div class="line"><a 
name="l00088"></a><span class="lineno">   88</span>&#160;    }</div><div 
class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;  
}</div><div class="line"><a name="l00090"></a><span class="lineno">   
90</span>&#160;</div><div class="line"><a name="l00091"></a><span 
class="lineno">   91</span>&#160;  <span class="comment">// Allow simple 
construction via initializer list.</span></div><div class="line"><a 
name="l00092"></a><span class="lineno"><a class="line" href="classhas
 hset.html#aac6ea32464de246ec11f696a46c2d465">   92</a></span>&#160;  <a 
class="code" 
href="classhashset.html#aac6ea32464de246ec11f696a46c2d465">hashset</a>(std::initializer_list&lt;Elem&gt;
 <a class="code" 
href="namespacecgroups_1_1devices.html#a22494291bc2cb89697dcd2b5f288bdd3">list</a>)</div><div
 class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;  
{</div><div class="line"><a name="l00094"></a><span class="lineno">   
94</span>&#160;    std::unordered_set&lt;Elem, Hash, 
Equal&gt;::reserve(list.size());</div><div class="line"><a 
name="l00095"></a><span class="lineno">   95</span>&#160;</div><div 
class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    
<span class="keywordflow">for</span> (<span class="keyword">auto</span> 
iterator = list.begin(); iterator != list.end(); ++iterator) {</div><div 
class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;      
std::unordered_set&lt;Elem, Hash, Equal&gt;::emplace(*iterator);</div><
 div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;  
  }</div><div class="line"><a name="l00099"></a><span class="lineno">   
99</span>&#160;  }</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">// Checks whether this map contains a binding for a 
key.</span></div><div class="line"><a name="l00102"></a><span class="lineno"><a 
class="line" href="classhashset.html#a009647cc01c0fc3f1bb58395a89c2e48">  
102</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" 
href="classhashset.html#a009647cc01c0fc3f1bb58395a89c2e48">contains</a>(<span 
class="keyword">const</span> Elem&amp; elem)<span class="keyword"> 
const</span></div><div class="line"><a name="l00103"></a><span class="lineno">  
103</span>&#160;<span class="keyword">  </span>{</div><div class="line"><a 
name="l00104"></a><span class="lineno">  104</span>&#1
 60;    <span class="keywordflow">return</span> std::unordered_set&lt;Elem, 
Hash, Equal&gt;::count(elem) &gt; 0;</div><div class="line"><a 
name="l00105"></a><span class="lineno">  105</span>&#160;  }</div><div 
class="line"><a name="l00106"></a><span class="lineno">  
106</span>&#160;</div><div class="line"><a name="l00107"></a><span 
class="lineno">  107</span>&#160;  <span class="comment">// Checks whether 
there exists a value in this set that returns the</span></div><div 
class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  
<span class="comment">// a result equal to &#39;r&#39; when the specified 
method is invoked.</span></div><div class="line"><a name="l00109"></a><span 
class="lineno">  109</span>&#160;  <span class="keyword">template</span> 
&lt;<span class="keyword">typename</span> R, <span 
class="keyword">typename</span> T&gt;</div><div class="line"><a 
name="l00110"></a><span class="lineno"><a class="line" 
href="classhashset.html#a48e505274d9cc4f4d5005fdf8e7d1
 edf">  110</a></span>&#160;  <span class="keywordtype">bool</span> <a 
class="code" 
href="classhashset.html#a48e505274d9cc4f4d5005fdf8e7d1edf">exists</a>(R 
(T::*method)(), R r)<span class="keyword"> const</span></div><div 
class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span 
class="keyword">  </span>{</div><div class="line"><a name="l00112"></a><span 
class="lineno">  112</span>&#160;    <span class="keywordflow">foreach</span> 
(<span class="keyword">const</span> Elem&amp; elem, *<span 
class="keyword">this</span>) {</div><div class="line"><a 
name="l00113"></a><span class="lineno">  113</span>&#160;      <span 
class="keyword">const</span> T* t = boost::get_pointer(elem);</div><div 
class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;      
<span class="keywordflow">if</span> (t-&gt;*method() == r) {</div><div 
class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;       
 <span class="keywordflow">return</span> <span class="k
 eyword">true</span>;</div><div class="line"><a name="l00116"></a><span 
class="lineno">  116</span>&#160;      }</div><div class="line"><a 
name="l00117"></a><span class="lineno">  117</span>&#160;    }</div><div 
class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  
}</div><div class="line"><a name="l00119"></a><span class="lineno">  
119</span>&#160;</div><div class="line"><a name="l00120"></a><span 
class="lineno">  120</span>&#160;  <span class="comment">// Checks whether 
there exists an element in this set whose</span></div><div class="line"><a 
name="l00121"></a><span class="lineno">  121</span>&#160;  <span 
class="comment">// specified member is equal to &#39;r&#39;.</span></div><div 
class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;  
<span class="keyword">template</span> &lt;<span class="keyword">typename</span> 
R, <span class="keyword">typename</span> T&gt;</div><div class="line"><a 
name="l00123"></a><span class="lineno"><a class="line"
  href="classhashset.html#a60700003612ce6c498c3fb7d948f96fd">  
123</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" 
href="classhashset.html#a60700003612ce6c498c3fb7d948f96fd">exists</a>(R 
(T::*member), R r)<span class="keyword"> const</span></div><div class="line"><a 
name="l00124"></a><span class="lineno">  124</span>&#160;<span class="keyword"> 
 </span>{</div><div class="line"><a name="l00125"></a><span class="lineno">  
125</span>&#160;    <span class="keywordflow">foreach</span> (<span 
class="keyword">const</span> Elem&amp; elem, *<span 
class="keyword">this</span>) {</div><div class="line"><a 
name="l00126"></a><span class="lineno">  126</span>&#160;      <span 
class="keyword">const</span> T* t = boost::get_pointer(elem);</div><div 
class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;      
<span class="keywordflow">if</span> (t-&gt;*member == r) {</div><div 
class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;       
 <sp
 an class="keywordflow">return</span> <span 
class="keyword">true</span>;</div><div class="line"><a name="l00129"></a><span 
class="lineno">  129</span>&#160;      }</div><div class="line"><a 
name="l00130"></a><span class="lineno">  130</span>&#160;    }</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;};</div><div class="line"><a name="l00133"></a><span 
class="lineno">  133</span>&#160;</div><div class="line"><a 
name="l00134"></a><span class="lineno">  134</span>&#160;</div><div 
class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span 
class="comment">// TODO(jmlvanre): Possibly remove this reference as per 
MESOS-2694.</span></div><div class="line"><a name="l00136"></a><span 
class="lineno">  136</span>&#160;<span class="keyword">template</span> 
&lt;<span class="keyword">typename</span> Elem, <span 
class="keyword">typename</span> Hash, <span clas
 s="keyword">typename</span> Equal&gt;</div><div class="line"><a 
name="l00137"></a><span class="lineno">  137</span>&#160;<span 
class="keyword">const</span> <a class="code" 
href="classhashset.html">hashset&lt;Elem, Hash, Equal&gt;</a>&amp; <a 
class="code" href="classhashset.html">hashset&lt;Elem, Hash, 
Equal&gt;::EMPTY</a> =</div><div class="line"><a name="l00138"></a><span 
class="lineno">  138</span>&#160;  *<span class="keyword">new</span> <a 
class="code" href="classhashset.html">hashset&lt;Elem, Hash, 
Equal&gt;</a>();</div><div class="line"><a name="l00139"></a><span 
class="lineno">  139</span>&#160;</div><div class="line"><a 
name="l00140"></a><span class="lineno">  140</span>&#160;</div><div 
class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span 
class="comment">// Union operator.</span></div><div class="line"><a 
name="l00142"></a><span class="lineno">  142</span>&#160;<span 
class="keyword">template</span> &lt;<span class="keyword">typename</span> Elem, 
<sp
 an class="keyword">typename</span> Hash, <span class="keyword">typename</span> 
Equal&gt;</div><div class="line"><a name="l00143"></a><span class="lineno"><a 
class="line" href="hashset_8hpp.html#a53a97a073752b7f6a47909ee2155b317">  
143</a></span>&#160;<a class="code" href="classhashset.html">hashset&lt;Elem, 
Hash, Equal&gt;</a> <a class="code" 
href="hashset_8hpp.html#a53a97a073752b7f6a47909ee2155b317">operator|</a>(</div><div
 class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    
<span class="keyword">const</span> <a class="code" 
href="classhashset.html">hashset&lt;Elem, Hash, Equal&gt;</a>&amp; 
left,</div><div class="line"><a name="l00145"></a><span class="lineno">  
145</span>&#160;    <span class="keyword">const</span> <a class="code" 
href="classhashset.html">hashset&lt;Elem, Hash, Equal&gt;</a>&amp; 
right)</div><div class="line"><a name="l00146"></a><span class="lineno">  
146</span>&#160;{</div><div class="line"><a name="l00147"></a><span 
class="lineno">  147
 </span>&#160;  <span class="comment">// Note, we&#39;re not using 
&#39;set_union&#39; since it affords us no benefit</span></div><div 
class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;  
<span class="comment">// in efficiency and is more complicated to use given we 
have sets.</span></div><div class="line"><a name="l00149"></a><span 
class="lineno">  149</span>&#160;  <a class="code" 
href="classhashset.html">hashset&lt;Elem, Hash, Equal&gt;</a> result = 
left;</div><div class="line"><a name="l00150"></a><span class="lineno">  
150</span>&#160;  result |= right;</div><div class="line"><a 
name="l00151"></a><span class="lineno">  151</span>&#160;  <span 
class="keywordflow">return</span> result;</div><div class="line"><a 
name="l00152"></a><span class="lineno">  152</span>&#160;}</div><div 
class="line"><a name="l00153"></a><span class="lineno">  
153</span>&#160;</div><div class="line"><a name="l00154"></a><span 
class="lineno">  154</span>&#160;</div><div class="line"><a
  name="l00155"></a><span class="lineno">  155</span>&#160;<span 
class="comment">// Union assignment operator.</span></div><div class="line"><a 
name="l00156"></a><span class="lineno">  156</span>&#160;<span 
class="keyword">template</span> &lt;<span class="keyword">typename</span> Elem, 
<span class="keyword">typename</span> Hash, <span 
class="keyword">typename</span> Equal&gt;</div><div class="line"><a 
name="l00157"></a><span class="lineno"><a class="line" 
href="hashset_8hpp.html#ae7e3e706ea5528830e2846625e52c3d1">  
157</a></span>&#160;<a class="code" href="classhashset.html">hashset&lt;Elem, 
Hash, Equal&gt;</a>&amp; <a class="code" 
href="hashset_8hpp.html#ae7e3e706ea5528830e2846625e52c3d1">operator|=</a>(</div><div
 class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    
<a class="code" href="classhashset.html">hashset&lt;Elem, Hash, 
Equal&gt;</a>&amp; left,</div><div class="line"><a name="l00159"></a><span 
class="lineno">  159</span>&#160;    <span class="keyword
 ">const</span> <a class="code" href="classhashset.html">hashset&lt;Elem, Hash, 
Equal&gt;</a>&amp; right)</div><div class="line"><a name="l00160"></a><span 
class="lineno">  160</span>&#160;{</div><div class="line"><a 
name="l00161"></a><span class="lineno">  161</span>&#160;  
left.insert(right.begin(), right.end());</div><div class="line"><a 
name="l00162"></a><span class="lineno">  162</span>&#160;  <span 
class="keywordflow">return</span> left;</div><div class="line"><a 
name="l00163"></a><span class="lineno">  163</span>&#160;}</div><div 
class="line"><a name="l00164"></a><span class="lineno">  
164</span>&#160;</div><div class="line"><a name="l00165"></a><span 
class="lineno">  165</span>&#160;<span class="preprocessor">#endif // 
__STOUT_HASHSET_HPP__</span></div><div class="ttc" 
id="namespaceos_1_1stat_html_a7a116891923bc8b5d8c50f78da8657be"><div 
class="ttname"><a 
href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">os::stat::size</a></div><div
 class="ttdeci">Try&lt; Bytes
  &gt; size(const std::string &amp;path, const FollowSymlink 
follow=FollowSymlink::FOLLOW_SYMLINK)</div><div 
class="ttdef"><b>Definition:</b> stat.hpp:100</div></div>
+<a href="hashset_8hpp.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">// Licensed under the Apache License, 
Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a 
name="l00002"></a><span class="lineno">    2</span>&#160;<span 
class="comment">// you may not use this file except in compliance with the 
License.</span></div><div class="line"><a name="l00003"></a><span 
class="lineno">    3</span>&#160;<span class="comment">// You may obtain a copy 
of the License at</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">//  http://www.apache.org/licenses/LICENSE-2.0</span></div><div 
class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span 
class="comment">//</span
 ></div><div class="line"><a name="l00007"></a><span class="lineno">    
 >7</span>&#160;<span class="comment">// Unless required by applicable law or 
 >agreed to in writing, software</span></div><div class="line"><a 
 >name="l00008"></a><span class="lineno">    8</span>&#160;<span 
 >class="comment">// distributed under the License is distributed on an 
 >&quot;AS IS&quot; BASIS,</span></div><div class="line"><a 
 >name="l00009"></a><span class="lineno">    9</span>&#160;<span 
 >class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 
 >express or implied.</span></div><div class="line"><a name="l00010"></a><span 
 >class="lineno">   10</span>&#160;<span class="comment">// See the License for 
 >the specific language governing permissions and</span></div><div 
 >class="line"><a name="l00011"></a><span class="lineno">   
 >11</span>&#160;<span class="comment">// limitations under the 
 >License.</span></div><div class="line"><a name="l00012"></a><span 
 >class="lineno">   12</span>&#160;</div><div class="lin
 e"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span 
class="preprocessor">#ifndef __STOUT_HASHSET_HPP__</span></div><div 
class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span 
class="preprocessor">#define __STOUT_HASHSET_HPP__</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="preprocessor">#include 
&lt;set&gt;</span></div><div class="line"><a name="l00017"></a><span 
class="lineno">   17</span>&#160;<span class="preprocessor">#include 
&lt;unordered_set&gt;</span></div><div class="line"><a name="l00018"></a><span 
class="lineno">   18</span>&#160;<span class="preprocessor">#include 
&lt;utility&gt;</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="preprocessor">#include &lt;boos
 t/get_pointer.hpp&gt;</span></div><div class="line"><a name="l00021"></a><span 
class="lineno">   21</span>&#160;</div><div class="line"><a 
name="l00022"></a><span class="lineno">   22</span>&#160;<span 
class="preprocessor">#include &quot;<a class="code" 
href="foreach_8hpp.html">foreach.hpp</a>&quot;</span></div><div class="line"><a 
name="l00023"></a><span class="lineno">   23</span>&#160;</div><div 
class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span 
class="comment">// Prior to C++14 we can&#39;t use an enum type as the key to 
any</span></div><div class="line"><a name="l00025"></a><span class="lineno">   
25</span>&#160;<span class="comment">// hash-based collection because of a 
defect in the standard. See</span></div><div class="line"><a 
name="l00026"></a><span class="lineno">   26</span>&#160;<span 
class="comment">// www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#2148 
for more</span></div><div class="line"><a name="l00027"></a><span 
class="lineno"> 
   27</span>&#160;<span class="comment">// details. The workaround for now is 
to use the following hash</span></div><div class="line"><a 
name="l00028"></a><span class="lineno">   28</span>&#160;<span 
class="comment">// function when using an enum.</span></div><div 
class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span 
class="comment">//</span></div><div class="line"><a name="l00030"></a><span 
class="lineno">   30</span>&#160;<span class="comment">// TODO(benh): Remove 
this once we move to C++14.</span></div><div class="line"><a 
name="l00031"></a><span class="lineno"><a class="line" 
href="structEnumClassHash.html">   31</a></span>&#160;<span 
class="keyword">struct </span><a class="code" 
href="structEnumClassHash.html">EnumClassHash</a></div><div class="line"><a 
name="l00032"></a><span class="lineno">   32</span>&#160;{</div><div 
class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;  
<span class="keyword">template</span> &lt;<span class="keyw
 ord">typename</span> T&gt;</div><div class="line"><a name="l00034"></a><span 
class="lineno"><a class="line" 
href="structEnumClassHash.html#a02ef43aab3f3004ec306c58d3ebd423a">   
34</a></span>&#160;  std::size_t <a class="code" 
href="structEnumClassHash.html#a02ef43aab3f3004ec306c58d3ebd423a">operator()</a>(T
 t)<span class="keyword"> const</span></div><div class="line"><a 
name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword"> 
 </span>{</div><div class="line"><a name="l00036"></a><span class="lineno">   
36</span>&#160;    static_assert(</div><div class="line"><a 
name="l00037"></a><span class="lineno">   37</span>&#160;        <span 
class="keyword">sizeof</span>(<span class="keyword">typename</span> <a 
class="code" 
href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">std::underlying_type&lt;T&gt;::type</a>)
 &lt;= <span class="keyword">sizeof</span>(std::size_t),</div><div 
class="line"><a name="l00038"></a><span class="lineno">   38</spa
 n>&#160;        <span class="stringliteral">&quot;Expecting enum type to be 
convertible to std::size_t&quot;</span>);</div><div class="line"><a 
name="l00039"></a><span class="lineno">   39</span>&#160;    <span 
class="keywordflow">return</span> <span 
class="keyword">static_cast&lt;</span>std::size_t<span 
class="keyword">&gt;</span>(t);</div><div class="line"><a 
name="l00040"></a><span class="lineno">   40</span>&#160;  }</div><div 
class="line"><a name="l00041"></a><span class="lineno">   
41</span>&#160;};</div><div class="line"><a name="l00042"></a><span 
class="lineno">   42</span>&#160;</div><div class="line"><a 
name="l00043"></a><span class="lineno">   43</span>&#160;</div><div 
class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span 
class="comment">// Provides a hash set via &#39;std::unordered_set&#39;. We 
inherit from it to add</span></div><div class="line"><a name="l00045"></a><span 
class="lineno">   45</span>&#160;<span class="comment">// new functions a
 s well as to provide better naming for some of the</span></div><div 
class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span 
class="comment">// existing functions.</span></div><div class="line"><a 
name="l00047"></a><span class="lineno">   47</span>&#160;<span 
class="keyword">template</span> &lt;<span class="keyword">typename</span> 
Elem,</div><div class="line"><a name="l00048"></a><span class="lineno">   
48</span>&#160;          <span class="keyword">typename</span> Hash = <span 
class="keyword">typename</span> std::conditional&lt;</div><div class="line"><a 
name="l00049"></a><span class="lineno">   49</span>&#160;            
std::is_enum&lt;Elem&gt;::value,</div><div class="line"><a 
name="l00050"></a><span class="lineno">   50</span>&#160;            <a 
class="code" href="structEnumClassHash.html">EnumClassHash</a>,</div><div 
class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;       
     std::hash&lt;Elem&gt;&gt;<a class="code" href="namesp
 
acemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a>,</div><div
 class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;      
    <span class="keyword">typename</span> Equal = 
std::equal_to&lt;Elem&gt;&gt;</div><div class="line"><a name="l00053"></a><span 
class="lineno"><a class="line" href="classhashset.html">   
53</a></span>&#160;<span class="keyword">class </span><a class="code" 
href="classhashset.html">hashset</a> : <span class="keyword">public</span> 
std::unordered_set&lt;Elem, Hash, Equal&gt;</div><div class="line"><a 
name="l00054"></a><span class="lineno">   54</span>&#160;{</div><div 
class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span 
class="keyword">public</span>:</div><div class="line"><a 
name="l00056"></a><span class="lineno"><a class="line" 
href="classhashset.html#a5830fa996b2329b114e044fcd82ceeaa">   
56</a></span>&#160;  <span class="keyword">static</span> <span 
class="keyword">const</span> <a class="c
 ode" href="classhashset.html">hashset&lt;Elem, Hash, Equal&gt;</a>&amp; <a 
class="code" 
href="classhashset.html#a5830fa996b2329b114e044fcd82ceeaa">EMPTY</a>;</div><div 
class="line"><a name="l00057"></a><span class="lineno">   
57</span>&#160;</div><div class="line"><a name="l00058"></a><span 
class="lineno">   58</span>&#160;  <span class="comment">// An explicit default 
constructor is needed so</span></div><div class="line"><a 
name="l00059"></a><span class="lineno">   59</span>&#160;  <span 
class="comment">// &#39;const hashset&lt;T&gt; map;&#39; is not an 
error.</span></div><div class="line"><a name="l00060"></a><span 
class="lineno"><a class="line" 
href="classhashset.html#aac5c05ca1e801a6887c67dfe6a205090">   
60</a></span>&#160;  <a class="code" 
href="classhashset.html#aac5c05ca1e801a6887c67dfe6a205090">hashset</a>() 
{}</div><div class="line"><a name="l00061"></a><span class="lineno">   
61</span>&#160;</div><div class="line"><a name="l00062"></a><span 
class="lineno">   62</span>&#16
 0;  <span class="comment">// An implicit constructor for converting from a 
std::set.</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">   64</span>&#160;  
<span class="comment">// TODO(arojas): Allow any arbitrary type that supports 
&#39;begin()&#39;</span></div><div class="line"><a name="l00065"></a><span 
class="lineno">   65</span>&#160;  <span class="comment">// and &#39;end()&#39; 
passed into the specified &#39;emplace&#39;?</span></div><div class="line"><a 
name="l00066"></a><span class="lineno"><a class="line" 
href="classhashset.html#a08a3275f7d5ed4706681a5036550e11d">   
66</a></span>&#160;  <a class="code" 
href="classhashset.html#a08a3275f7d5ed4706681a5036550e11d">hashset</a>(<span 
class="keyword">const</span> std::set&lt;Elem&gt;&amp; <span 
class="keyword">set</span>)</div><div class="line"><a name="l00067"></a><span 
class="lineno">   67</
 span>&#160;  {</div><div class="line"><a name="l00068"></a><span 
class="lineno">   68</span>&#160;    std::unordered_set&lt;Elem, Hash, 
Equal&gt;::reserve(<span class="keyword">set</span>.<a class="code" 
href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">size</a>());</div><div
 class="line"><a name="l00069"></a><span class="lineno">   
69</span>&#160;</div><div class="line"><a name="l00070"></a><span 
class="lineno">   70</span>&#160;    <span class="keywordflow">for</span> 
(<span class="keyword">auto</span> iterator = <span 
class="keyword">set</span>.begin(); iterator != <span 
class="keyword">set</span>.end(); ++iterator) {</div><div class="line"><a 
name="l00071"></a><span class="lineno">   71</span>&#160;      
std::unordered_set&lt;Elem, Hash, Equal&gt;::emplace(*iterator);</div><div 
class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    
}</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;</div><div 
 >class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;  
 ><span class="comment">// An implicit constructor for converting from an 
 >r-value std::set.</span></div><div class="line"><a name="l00076"></a><span 
 >class="lineno">   76</span>&#160;  <span class="comment">//</span></div><div 
 >class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  
 ><span class="comment">// TODO(arojas): Allow any arbitrary type that supports 
 >&#39;begin()&#39;</span></div><div class="line"><a name="l00078"></a><span 
 >class="lineno">   78</span>&#160;  <span class="comment">// and 
 >&#39;end()&#39; passed into the specified &#39;insert&#39;?</span></div><div 
 >class="line"><a name="l00079"></a><span class="lineno"><a class="line" 
 >href="classhashset.html#a96337da127d7c4d69ff3b0ebae333e50">   
 >79</a></span>&#160;  <a class="code" 
 >href="classhashset.html#a96337da127d7c4d69ff3b0ebae333e50">hashset</a>(std::set&lt;Elem
 &gt;&amp;&amp; <span class="keyword">set</span>)</div><div class="line"><a 
name="l00080"></a><span class="lineno">   80</span>&#160;  {</div><div 
class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    
<span class="comment">// An implementation based on the move constructor of 
&#39;hashmap&#39;</span></div><div class="line"><a name="l00082"></a><span 
class="lineno">   82</span>&#160;    <span class="comment">// fails to compile 
on all major compilers except gcc 5.1 and up.</span></div><div class="line"><a 
name="l00083"></a><span class="lineno">   83</span>&#160;    <span 
class="comment">// See 
http://stackoverflow.com/q/31051466/118750?sem=2.</span></div><div 
class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    
std::unordered_set&lt;Elem, Hash, Equal&gt;::reserve(<span 
class="keyword">set</span>.<a class="code" 
href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">size</a>());</div><div
 class="line"><a name="l00085"></a><span 
 class="lineno">   85</span>&#160;</div><div class="line"><a 
name="l00086"></a><span class="lineno">   86</span>&#160;    <span 
class="keywordflow">for</span> (<span class="keyword">auto</span> iterator = 
<span class="keyword">set</span>.begin(); iterator != <span 
class="keyword">set</span>.end(); ++iterator) {</div><div class="line"><a 
name="l00087"></a><span class="lineno">   87</span>&#160;      
std::unordered_set&lt;Elem, Hash, 
Equal&gt;::emplace(std::move(*iterator));</div><div class="line"><a 
name="l00088"></a><span class="lineno">   88</span>&#160;    }</div><div 
class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;  
}</div><div class="line"><a name="l00090"></a><span class="lineno">   
90</span>&#160;</div><div class="line"><a name="l00091"></a><span 
class="lineno">   91</span>&#160;  <span class="comment">// Allow simple 
construction via initializer list.</span></div><div class="line"><a 
name="l00092"></a><span class="lineno"><a class="line" href="classhas
 hset.html#aac6ea32464de246ec11f696a46c2d465">   92</a></span>&#160;  <a 
class="code" 
href="classhashset.html#aac6ea32464de246ec11f696a46c2d465">hashset</a>(std::initializer_list&lt;Elem&gt;
 <a class="code" 
href="namespacecgroups_1_1devices.html#a22494291bc2cb89697dcd2b5f288bdd3">list</a>)</div><div
 class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;  
{</div><div class="line"><a name="l00094"></a><span class="lineno">   
94</span>&#160;    std::unordered_set&lt;Elem, Hash, 
Equal&gt;::reserve(list.size());</div><div class="line"><a 
name="l00095"></a><span class="lineno">   95</span>&#160;</div><div 
class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    
<span class="keywordflow">for</span> (<span class="keyword">auto</span> 
iterator = list.begin(); iterator != list.end(); ++iterator) {</div><div 
class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;      
std::unordered_set&lt;Elem, Hash, Equal&gt;::emplace(*iterator);</div><
 div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;  
  }</div><div class="line"><a name="l00099"></a><span class="lineno">   
99</span>&#160;  }</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">// Checks whether this map contains a binding for a 
key.</span></div><div class="line"><a name="l00102"></a><span class="lineno"><a 
class="line" href="classhashset.html#a009647cc01c0fc3f1bb58395a89c2e48">  
102</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" 
href="classhashset.html#a009647cc01c0fc3f1bb58395a89c2e48">contains</a>(<span 
class="keyword">const</span> Elem&amp; elem)<span class="keyword"> 
const</span></div><div class="line"><a name="l00103"></a><span class="lineno">  
103</span>&#160;<span class="keyword">  </span>{</div><div class="line"><a 
name="l00104"></a><span class="lineno">  104</span>&#1
 60;    <span class="keywordflow">return</span> std::unordered_set&lt;Elem, 
Hash, Equal&gt;::count(elem) &gt; 0;</div><div class="line"><a 
name="l00105"></a><span class="lineno">  105</span>&#160;  }</div><div 
class="line"><a name="l00106"></a><span class="lineno">  
106</span>&#160;</div><div class="line"><a name="l00107"></a><span 
class="lineno">  107</span>&#160;  <span class="comment">// Checks whether 
there exists a value in this set that returns the</span></div><div 
class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  
<span class="comment">// a result equal to &#39;r&#39; when the specified 
method is invoked.</span></div><div class="line"><a name="l00109"></a><span 
class="lineno">  109</span>&#160;  <span class="keyword">template</span> 
&lt;<span class="keyword">typename</span> R, <span 
class="keyword">typename</span> T&gt;</div><div class="line"><a 
name="l00110"></a><span class="lineno"><a class="line" 
href="classhashset.html#a48e505274d9cc4f4d5005fdf8e7d1
 edf">  110</a></span>&#160;  <span class="keywordtype">bool</span> <a 
class="code" 
href="classhashset.html#a48e505274d9cc4f4d5005fdf8e7d1edf">exists</a>(R 
(T::*method)(), R r)<span class="keyword"> const</span></div><div 
class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span 
class="keyword">  </span>{</div><div class="line"><a name="l00112"></a><span 
class="lineno">  112</span>&#160;    <span class="keywordflow">foreach</span> 
(<span class="keyword">const</span> Elem&amp; elem, *<span 
class="keyword">this</span>) {</div><div class="line"><a 
name="l00113"></a><span class="lineno">  113</span>&#160;      <span 
class="keyword">const</span> T* t = boost::get_pointer(elem);</div><div 
class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;      
<span class="keywordflow">if</span> (t-&gt;*method() == r) {</div><div 
class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;       
 <span class="keywordflow">return</span> <span class="k
 eyword">true</span>;</div><div class="line"><a name="l00116"></a><span 
class="lineno">  116</span>&#160;      }</div><div class="line"><a 
name="l00117"></a><span class="lineno">  117</span>&#160;    }</div><div 
class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  
}</div><div class="line"><a name="l00119"></a><span class="lineno">  
119</span>&#160;</div><div class="line"><a name="l00120"></a><span 
class="lineno">  120</span>&#160;  <span class="comment">// Checks whether 
there exists an element in this set whose</span></div><div class="line"><a 
name="l00121"></a><span class="lineno">  121</span>&#160;  <span 
class="comment">// specified member is equal to &#39;r&#39;.</span></div><div 
class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;  
<span class="keyword">template</span> &lt;<span class="keyword">typename</span> 
R, <span class="keyword">typename</span> T&gt;</div><div class="line"><a 
name="l00123"></a><span class="lineno"><a class="line"
  href="classhashset.html#a60700003612ce6c498c3fb7d948f96fd">  
123</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" 
href="classhashset.html#a60700003612ce6c498c3fb7d948f96fd">exists</a>(R 
(T::*member), R r)<span class="keyword"> const</span></div><div class="line"><a 
name="l00124"></a><span class="lineno">  124</span>&#160;<span class="keyword"> 
 </span>{</div><div class="line"><a name="l00125"></a><span class="lineno">  
125</span>&#160;    <span class="keywordflow">foreach</span> (<span 
class="keyword">const</span> Elem&amp; elem, *<span 
class="keyword">this</span>) {</div><div class="line"><a 
name="l00126"></a><span class="lineno">  126</span>&#160;      <span 
class="keyword">const</span> T* t = boost::get_pointer(elem);</div><div 
class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;      
<span class="keywordflow">if</span> (t-&gt;*member == r) {</div><div 
class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;       
 <sp
 an class="keywordflow">return</span> <span 
class="keyword">true</span>;</div><div class="line"><a name="l00129"></a><span 
class="lineno">  129</span>&#160;      }</div><div class="line"><a 
name="l00130"></a><span class="lineno">  130</span>&#160;    }</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;};</div><div class="line"><a name="l00133"></a><span 
class="lineno">  133</span>&#160;</div><div class="line"><a 
name="l00134"></a><span class="lineno">  134</span>&#160;</div><div 
class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span 
class="comment">// TODO(jmlvanre): Possibly remove this reference as per 
MESOS-2694.</span></div><div class="line"><a name="l00136"></a><span 
class="lineno">  136</span>&#160;<span class="keyword">template</span> 
&lt;<span class="keyword">typename</span> Elem, <span 
class="keyword">typename</span> Hash, <span clas
 s="keyword">typename</span> Equal&gt;</div><div class="line"><a 
name="l00137"></a><span class="lineno">  137</span>&#160;<span 
class="keyword">const</span> <a class="code" 
href="classhashset.html">hashset&lt;Elem, Hash, Equal&gt;</a>&amp; <a 
class="code" href="classhashset.html">hashset&lt;Elem, Hash, 
Equal&gt;::EMPTY</a> =</div><div class="line"><a name="l00138"></a><span 
class="lineno">  138</span>&#160;  *<span class="keyword">new</span> <a 
class="code" href="classhashset.html">hashset&lt;Elem, Hash, 
Equal&gt;</a>();</div><div class="line"><a name="l00139"></a><span 
class="lineno">  139</span>&#160;</div><div class="line"><a 
name="l00140"></a><span class="lineno">  140</span>&#160;</div><div 
class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span 
class="comment">// Union operator.</span></div><div class="line"><a 
name="l00142"></a><span class="lineno">  142</span>&#160;<span 
class="keyword">template</span> &lt;<span class="keyword">typename</span> Elem, 
<sp
 an class="keyword">typename</span> Hash, <span class="keyword">typename</span> 
Equal&gt;</div><div class="line"><a name="l00143"></a><span class="lineno"><a 
class="line" href="hashset_8hpp.html#a53a97a073752b7f6a47909ee2155b317">  
143</a></span>&#160;<a class="code" href="classhashset.html">hashset&lt;Elem, 
Hash, Equal&gt;</a> <a class="code" 
href="hashset_8hpp.html#a53a97a073752b7f6a47909ee2155b317">operator|</a>(</div><div
 class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    
<span class="keyword">const</span> <a class="code" 
href="classhashset.html">hashset&lt;Elem, Hash, Equal&gt;</a>&amp; 
left,</div><div class="line"><a name="l00145"></a><span class="lineno">  
145</span>&#160;    <span class="keyword">const</span> <a class="code" 
href="classhashset.html">hashset&lt;Elem, Hash, Equal&gt;</a>&amp; 
right)</div><div class="line"><a name="l00146"></a><span class="lineno">  
146</span>&#160;{</div><div class="line"><a name="l00147"></a><span 
class="lineno">  147
 </span>&#160;  <span class="comment">// Note, we&#39;re not using 
&#39;set_union&#39; since it affords us no benefit</span></div><div 
class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;  
<span class="comment">// in efficiency and is more complicated to use given we 
have sets.</span></div><div class="line"><a name="l00149"></a><span 
class="lineno">  149</span>&#160;  <a class="code" 
href="classhashset.html">hashset&lt;Elem, Hash, Equal&gt;</a> result = 
left;</div><div class="line"><a name="l00150"></a><span class="lineno">  
150</span>&#160;  result |= right;</div><div class="line"><a 
name="l00151"></a><span class="lineno">  151</span>&#160;  <span 
class="keywordflow">return</span> result;</div><div class="line"><a 
name="l00152"></a><span class="lineno">  152</span>&#160;}</div><div 
class="line"><a name="l00153"></a><span class="lineno">  
153</span>&#160;</div><div class="line"><a name="l00154"></a><span 
class="lineno">  154</span>&#160;</div><div class="line"><a
  name="l00155"></a><span class="lineno">  155</span>&#160;<span 
class="comment">// Union assignment operator.</span></div><div class="line"><a 
name="l00156"></a><span class="lineno">  156</span>&#160;<span 
class="keyword">template</span> &lt;<span class="keyword">typename</span> Elem, 
<span class="keyword">typename</span> Hash, <span 
class="keyword">typename</span> Equal&gt;</div><div class="line"><a 
name="l00157"></a><span class="lineno"><a class="line" 
href="hashset_8hpp.html#ae7e3e706ea5528830e2846625e52c3d1">  
157</a></span>&#160;<a class="code" href="classhashset.html">hashset&lt;Elem, 
Hash, Equal&gt;</a>&amp; <a class="code" 
href="hashset_8hpp.html#ae7e3e706ea5528830e2846625e52c3d1">operator|=</a>(</div><div
 class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    
<a class="code" href="classhashset.html">hashset&lt;Elem, Hash, 
Equal&gt;</a>&amp; left,</div><div class="line"><a name="l00159"></a><span 
class="lineno">  159</span>&#160;    <span class="keyword
 ">const</span> <a class="code" href="classhashset.html">hashset&lt;Elem, Hash, 
Equal&gt;</a>&amp; right)</div><div class="line"><a name="l00160"></a><span 
class="lineno">  160</span>&#160;{</div><div class="line"><a 
name="l00161"></a><span class="lineno">  161</span>&#160;  
left.insert(right.begin(), right.end());</div><div class="line"><a 
name="l00162"></a><span class="lineno">  162</span>&#160;  <span 
class="keywordflow">return</span> left;</div><div class="line"><a 
name="l00163"></a><span class="lineno">  163</span>&#160;}</div><div 
class="line"><a name="l00164"></a><span class="lineno">  
164</span>&#160;</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="comment">// Difference operator.</span></div><div class="line"><a 
name="l00167"></a><span class="lineno">  167</span>&#160;<span 
class="keyword">template</span> &lt;<span class="keyword">typename</span
 > Elem, <span class="keyword">typename</span> Hash, <span 
 > class="keyword">typename</span> Equal&gt;</div><div class="line"><a 
 > name="l00168"></a><span class="lineno"><a class="line" 
 > href="hashset_8hpp.html#a30485eb6718c099e2094b4d8faeb9fd7">  
 > 168</a></span>&#160;<a class="code" 
 > href="classhashset.html">hashset&lt;Elem, Hash, Equal&gt;</a> <a 
 > class="code" 
 > href="hashset_8hpp.html#a30485eb6718c099e2094b4d8faeb9fd7">operator-</a>(</div><div
 >  class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;   
 >  <span class="keyword">const</span> <a class="code" 
 > href="classhashset.html">hashset&lt;Elem, Hash, Equal&gt;</a>&amp; 
 > left,</div><div class="line"><a name="l00170"></a><span class="lineno">  
 > 170</span>&#160;    <span class="keyword">const</span> <a class="code" 
 > href="classhashset.html">hashset&lt;Elem, Hash, Equal&gt;</a>&amp; 
 > right)</div><div class="line"><a name="l00171"></a><span class="lineno">  
 > 171</span>&#160;{</div><div class="line"><a name="l00172"></a><span class="li
 neno">  172</span>&#160;  <a class="code" 
href="classhashset.html">hashset&lt;Elem, Hash, Equal&gt;</a> result = 
left;</div><div class="line"><a name="l00173"></a><span class="lineno">  
173</span>&#160;  result -= right;</div><div class="line"><a 
name="l00174"></a><span class="lineno">  174</span>&#160;  <span 
class="keywordflow">return</span> result;</div><div class="line"><a 
name="l00175"></a><span class="lineno">  175</span>&#160;}</div><div 
class="line"><a name="l00176"></a><span class="lineno">  
176</span>&#160;</div><div class="line"><a name="l00177"></a><span 
class="lineno">  177</span>&#160;</div><div class="line"><a 
name="l00178"></a><span class="lineno">  178</span>&#160;<span 
class="comment">// Difference assignment operator.</span></div><div 
class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span 
class="keyword">template</span> &lt;<span class="keyword">typename</span> Elem, 
<span class="keyword">typename</span> Hash, <span class="keyword">typename
 </span> Equal&gt;</div><div class="line"><a name="l00180"></a><span 
class="lineno"><a class="line" 
href="hashset_8hpp.html#a761a5f00fe185fac8193d7a8b6e220ac">  
180</a></span>&#160;<a class="code" href="classhashset.html">hashset&lt;Elem, 
Hash, Equal&gt;</a>&amp; <a class="code" 
href="hashset_8hpp.html#a761a5f00fe185fac8193d7a8b6e220ac">operator-=</a>(</div><div
 class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    
<a class="code" href="classhashset.html">hashset&lt;Elem, Hash, 
Equal&gt;</a>&amp; left,</div><div class="line"><a name="l00182"></a><span 
class="lineno">  182</span>&#160;    <span class="keyword">const</span> <a 
class="code" href="classhashset.html">hashset&lt;Elem, Hash, Equal&gt;</a>&amp; 
right)</div><div class="line"><a name="l00183"></a><span class="lineno">  
183</span>&#160;{</div><div class="line"><a name="l00184"></a><span 
class="lineno">  184</span>&#160;  <span class="keywordflow">foreach</span> 
(<span class="keyword">const</span> Elem&amp
 ; elem, right) {</div><div class="line"><a name="l00185"></a><span 
class="lineno">  185</span>&#160;    left.erase(elem);</div><div 
class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;  
}</div><div class="line"><a name="l00187"></a><span class="lineno">  
187</span>&#160;</div><div class="line"><a name="l00188"></a><span 
class="lineno">  188</span>&#160;  <span class="keywordflow">return</span> 
left;</div><div class="line"><a name="l00189"></a><span class="lineno">  
189</span>&#160;}</div><div class="line"><a name="l00190"></a><span 
class="lineno">  190</span>&#160;</div><div class="line"><a 
name="l00191"></a><span class="lineno">  191</span>&#160;<span 
class="preprocessor">#endif // __STOUT_HASHSET_HPP__</span></div><div 
class="ttc" 
id="namespaceos_1_1stat_html_a7a116891923bc8b5d8c50f78da8657be"><div 
class="ttname"><a 
href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">os::stat::size</a></div><div
 class="ttdeci">Try&lt; Bytes &gt; size(const std::s
 tring &amp;path, const FollowSymlink 
follow=FollowSymlink::FOLLOW_SYMLINK)</div><div 
class="ttdef"><b>Definition:</b> stat.hpp:100</div></div>
 <div class="ttc" id="classhashset_html_a48e505274d9cc4f4d5005fdf8e7d1edf"><div 
class="ttname"><a 
href="classhashset.html#a48e505274d9cc4f4d5005fdf8e7d1edf">hashset::exists</a></div><div
 class="ttdeci">bool exists(R(T::*method)(), R r) const </div><div 
class="ttdef"><b>Definition:</b> hashset.hpp:110</div></div>
 <div class="ttc" id="classhashset_html"><div class="ttname"><a 
href="classhashset.html">hashset</a></div><div class="ttdef"><b>Definition:</b> 
hashset.hpp:53</div></div>
 <div class="ttc" id="hashset_8hpp_html_ae7e3e706ea5528830e2846625e52c3d1"><div 
class="ttname"><a 
href="hashset_8hpp.html#ae7e3e706ea5528830e2846625e52c3d1">operator|=</a></div><div
 class="ttdeci">hashset&lt; Elem, Hash, Equal &gt; &amp; operator|=(hashset&lt; 
Elem, Hash, Equal &gt; &amp;left, const hashset&lt; Elem, Hash, Equal &gt; 
&amp;right)</div><div class="ttdef"><b>Definition:</b> 
hashset.hpp:157</div></div>
 <div class="ttc" id="classhashset_html_a96337da127d7c4d69ff3b0ebae333e50"><div 
class="ttname"><a 
href="classhashset.html#a96337da127d7c4d69ff3b0ebae333e50">hashset::hashset</a></div><div
 class="ttdeci">hashset(std::set&lt; Elem &gt; &amp;&amp;set)</div><div 
class="ttdef"><b>Definition:</b> hashset.hpp:79</div></div>
+<div class="ttc" id="hashset_8hpp_html_a761a5f00fe185fac8193d7a8b6e220ac"><div 
class="ttname"><a 
href="hashset_8hpp.html#a761a5f00fe185fac8193d7a8b6e220ac">operator-=</a></div><div
 class="ttdeci">hashset&lt; Elem, Hash, Equal &gt; &amp; operator-=(hashset&lt; 
Elem, Hash, Equal &gt; &amp;left, const hashset&lt; Elem, Hash, Equal &gt; 
&amp;right)</div><div class="ttdef"><b>Definition:</b> 
hashset.hpp:180</div></div>
 <div class="ttc" id="classhashset_html_a08a3275f7d5ed4706681a5036550e11d"><div 
class="ttname"><a 
href="classhashset.html#a08a3275f7d5ed4706681a5036550e11d">hashset::hashset</a></div><div
 class="ttdeci">hashset(const std::set&lt; Elem &gt; &amp;set)</div><div 
class="ttdef"><b>Definition:</b> hashset.hpp:66</div></div>
 <div class="ttc" 
id="structEnumClassHash_html_a02ef43aab3f3004ec306c58d3ebd423a"><div 
class="ttname"><a 
href="structEnumClassHash.html#a02ef43aab3f3004ec306c58d3ebd423a">EnumClassHash::operator()</a></div><div
 class="ttdeci">std::size_t operator()(T t) const </div><div 
class="ttdef"><b>Definition:</b> hashset.hpp:34</div></div>
 <div class="ttc" id="classhashset_html_a009647cc01c0fc3f1bb58395a89c2e48"><div 
class="ttname"><a 
href="classhashset.html#a009647cc01c0fc3f1bb58395a89c2e48">hashset::contains</a></div><div
 class="ttdeci">bool contains(const Elem &amp;elem) const </div><div 
class="ttdef"><b>Definition:</b> hashset.hpp:102</div></div>
 <div class="ttc" id="classhashset_html_a60700003612ce6c498c3fb7d948f96fd"><div 
class="ttname"><a 
href="classhashset.html#a60700003612ce6c498c3fb7d948f96fd">hashset::exists</a></div><div
 class="ttdeci">bool exists(R(T::*member), R r) const </div><div 
class="ttdef"><b>Definition:</b> hashset.hpp:123</div></div>
+<div class="ttc" id="hashset_8hpp_html_a30485eb6718c099e2094b4d8faeb9fd7"><div 
class="ttname"><a 
href="hashset_8hpp.html#a30485eb6718c099e2094b4d8faeb9fd7">operator-</a></div><div
 class="ttdeci">hashset&lt; Elem, Hash, Equal &gt; operator-(const hashset&lt; 
Elem, Hash, Equal &gt; &amp;left, const hashset&lt; Elem, Hash, Equal &gt; 
&amp;right)</div><div class="ttdef"><b>Definition:</b> 
hashset.hpp:168</div></div>
 <div class="ttc" id="classhashset_html_aac5c05ca1e801a6887c67dfe6a205090"><div 
class="ttname"><a 
href="classhashset.html#aac5c05ca1e801a6887c67dfe6a205090">hashset::hashset</a></div><div
 class="ttdeci">hashset()</div><div class="ttdef"><b>Definition:</b> 
hashset.hpp:60</div></div>
 <div class="ttc" id="hashset_8hpp_html_a53a97a073752b7f6a47909ee2155b317"><div 
class="ttname"><a 
href="hashset_8hpp.html#a53a97a073752b7f6a47909ee2155b317">operator|</a></div><div
 class="ttdeci">hashset&lt; Elem, Hash, Equal &gt; operator|(const hashset&lt; 
Elem, Hash, Equal &gt; &amp;left, const hashset&lt; Elem, Hash, Equal &gt; 
&amp;right)</div><div class="ttdef"><b>Definition:</b> 
hashset.hpp:143</div></div>
 <div class="ttc" id="classhashset_html_aac6ea32464de246ec11f696a46c2d465"><div 
class="ttname"><a 
href="classhashset.html#aac6ea32464de246ec11f696a46c2d465">hashset::hashset</a></div><div
 class="ttdeci">hashset(std::initializer_list&lt; Elem &gt; list)</div><div 
class="ttdef"><b>Definition:</b> hashset.hpp:92</div></div>

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e7ea521f/content/api/latest/c++/index.hhc
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/index.hhc b/content/api/latest/c++/index.hhc
index 13e7398..36cd640 100644
--- a/content/api/latest/c++/index.hhc
+++ b/content/api/latest/c++/index.hhc
@@ -15074,6 +15074,8 @@
                 <LI><OBJECT type="text/sitemap"><param name="Name" 
value="exists"><param name="Local" 
value="classhashset.html#a48e505274d9cc4f4d5005fdf8e7d1edf"><param 
name="ImageNumber" value="11"></OBJECT>
                 <LI><OBJECT type="text/sitemap"><param name="Name" 
value="exists"><param name="Local" 
value="classhashset.html#a60700003612ce6c498c3fb7d948f96fd"><param 
name="ImageNumber" value="11"></OBJECT>
                 </UL>
+              <LI><OBJECT type="text/sitemap"><param name="Name" 
value="operator-"><param name="Local" 
value="hashset_8hpp.html#a30485eb6718c099e2094b4d8faeb9fd7"><param 
name="ImageNumber" value="11"></OBJECT>
+              <LI><OBJECT type="text/sitemap"><param name="Name" 
value="operator-="><param name="Local" 
value="hashset_8hpp.html#a761a5f00fe185fac8193d7a8b6e220ac"><param 
name="ImageNumber" value="11"></OBJECT>
               <LI><OBJECT type="text/sitemap"><param name="Name" 
value="operator|"><param name="Local" 
value="hashset_8hpp.html#a53a97a073752b7f6a47909ee2155b317"><param 
name="ImageNumber" value="11"></OBJECT>
               <LI><OBJECT type="text/sitemap"><param name="Name" 
value="operator|="><param name="Local" 
value="hashset_8hpp.html#ae7e3e706ea5528830e2846625e52c3d1"><param 
name="ImageNumber" value="11"></OBJECT>
               </UL>

Reply via email to