forked from boostorg/fusion
merge from trunk
[SVN r47205]
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>has_key</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="value_at_c.html" title="value_at_c">
|
||||
@ -12,10 +12,10 @@
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../../../index.html">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@ -24,18 +24,17 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.has_key"></a><a class="link" href="has_key.html" title="has_key">has_key</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.has_key"></a><a href="has_key.html" title="has_key">has_key</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.has_key.description"></a><h6>
|
||||
<a name="id2688193"></a>
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.metafunctions.has_key.description">Description</a>
|
||||
<a name="id515674"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.metafunctions.has_key.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a class="link" href="../functions/has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">has_key</span></code></a>.
|
||||
Returns the result type of <a href="../functions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">has_key</span></tt></a>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.has_key.synopsis"></a><h6>
|
||||
<a name="id2688236"></a>
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.metafunctions.has_key.synopsis">Synopsis</a>
|
||||
<a name="id515724"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.metafunctions.has_key.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span><span class="special"><</span>
|
||||
@ -47,8 +46,8 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id2688341"></a><p class="title"><b>Table<EFBFBD>1.29.<2E>Parameters</b></p>
|
||||
<div class="table-contents"><table class="table" summary="Parameters">
|
||||
<a name="id515842"></a><p class="title"><b>Table<EFBFBD>1.29.<2E>Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@ -75,12 +74,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
A model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@ -93,7 +93,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Key</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Key</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@ -108,37 +108,37 @@
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
</div>
|
||||
<br class="table-break"><a name="fusion.sequence.intrinsic.metafunctions.has_key.expression_semantics"></a><h6>
|
||||
<a name="id2688465"></a>
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.metafunctions.has_key.expression_semantics">Expression
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.has_key.expression_semantics"></a><h6>
|
||||
<a name="id515979"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.metafunctions.has_key.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: An <a href="http://www.boost.org/libs/mpl/doc/refmanual/integral-constant.html" target="_top">MPL
|
||||
<span class="bold"><b>Return type</b></span>: An <a href="http://www.boost.org/libs/mpl/doc/refmanual/integral-constant.html" target="_top">MPL
|
||||
Integral Constant</a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">Seq</span></code> contains an element
|
||||
with key type <code class="computeroutput"><span class="identifier">Key</span></code>, returns
|
||||
<code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></code> otherwise.
|
||||
<span class="bold"><b>Semantics</b></span>: Returns <tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">Seq</span></tt> contains an element
|
||||
with key type <tt class="computeroutput"><span class="identifier">Key</span></tt>, returns
|
||||
<tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></tt> otherwise.
|
||||
</p>
|
||||
<p>
|
||||
/sequence/intrinsic/has_key.hpp>
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.has_key.example"></a><h6>
|
||||
<a name="id2688630"></a>
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.metafunctions.has_key.example">Example</a>
|
||||
<a name="id516163"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.metafunctions.has_key.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a class="link" href="../../../container/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a><span class="special"><</span><a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="special">></span> <span class="identifier">mymap</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a class="link" href="has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></code></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">int</span><span class="special">>));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT_NOT</span><span class="special">((</span><a class="link" href="has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></code></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">void</span><span class="special">*>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../container/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a><span class="special"><</span><a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="special">></span> <span class="identifier">mymap</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a href="has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></tt></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">int</span><span class="special">>));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT_NOT</span><span class="special">((</span><a href="has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></tt></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">void</span><span class="special">*>));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
Reference in New Issue
Block a user