summaryrefslogtreecommitdiff
path: root/doc/html/hash/combine.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/hash/combine.html')
-rw-r--r--doc/html/hash/combine.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/html/hash/combine.html b/doc/html/hash/combine.html
index 8c2325b7df..11cd6cbfa2 100644
--- a/doc/html/hash/combine.html
+++ b/doc/html/hash/combine.html
@@ -6,7 +6,7 @@
<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
-<link rel="up" href="../hash.html" title="Chapter&#160;16.&#160;Boost.Functional/Hash">
+<link rel="up" href="../hash.html" title="Chapter&#160;15.&#160;Boost.Functional/Hash">
<link rel="prev" href="custom.html" title="Extending boost::hash for a custom data type">
<link rel="next" href="portability.html" title="Portability">
</head>
@@ -70,7 +70,7 @@
<p>
Calls to hash_combine incrementally build the hash from the different members
of point, it can be repeatedly called for any number of elements. It calls
- <code class="computeroutput"><a class="link" href="reference.html#boost.hash_value_idp509058208">hash_value</a></code> on the supplied
+ <code class="computeroutput"><a class="link" href="reference.html#boost.hash_value_idp528258032">hash_value</a></code> on the supplied
element, and combines it with the seed.
</p>
<p>
@@ -106,17 +106,17 @@ If you are calculating a hash value for data
</td></tr>
</table></div>
<p>
- To calculate the hash of an iterator range you can use <code class="computeroutput"><a class="link" href="reference.html#boost.hash_range_idp509038256">boost::hash_range</a></code>:
+ To calculate the hash of an iterator range you can use <code class="computeroutput"><a class="link" href="reference.html#boost.hash_range_idp528238080">boost::hash_range</a></code>:
</p>
<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&gt;</span> <span class="identifier">some_strings</span><span class="special">;</span>
-<span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">hash</span> <span class="special">=</span> <code class="computeroutput"><a class="link" href="reference.html#boost.hash_range_idp509038256">boost::hash_range</a></code><span class="special">(</span><span class="identifier">some_strings</span><span class="special">.</span><span class="identifier">begin</span><span class="special">(),</span> <span class="identifier">some_strings</span><span class="special">.</span><span class="identifier">end</span><span class="special">());</span>
+<span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">hash</span> <span class="special">=</span> <code class="computeroutput"><a class="link" href="reference.html#boost.hash_range_idp528238080">boost::hash_range</a></code><span class="special">(</span><span class="identifier">some_strings</span><span class="special">.</span><span class="identifier">begin</span><span class="special">(),</span> <span class="identifier">some_strings</span><span class="special">.</span><span class="identifier">end</span><span class="special">());</span>
</pre>
<p>
Note that when writing template classes, you might not want to include the
main hash header as it's quite an expensive include that brings in a lot of
other headers, so instead you can include the <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">hash_fwd</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>
header which forward declares <code class="computeroutput"><a class="link" href="../boost/hash.html" title="Struct template hash">boost::hash</a></code>,
- <code class="computeroutput"><a class="link" href="reference.html#boost.hash_range_idp509038256">boost::hash_range</a></code> and
+ <code class="computeroutput"><a class="link" href="reference.html#boost.hash_range_idp528238080">boost::hash_range</a></code> and
<code class="computeroutput"><a class="link" href="reference.html#boost.hash_combine">boost::hash_combine</a></code>.
You'll need to include the main header before instantiating <code class="computeroutput"><a class="link" href="../boost/hash.html" title="Struct template hash">boost::hash</a></code>.
When using a container that uses <code class="computeroutput"><a class="link" href="../boost/hash.html" title="Struct template hash">boost::hash</a></code>