name changes

[SVN r1893]
This commit is contained in:
Daniel Wallin
2004-01-17 14:25:16 +00:00
parent f177c83cc1
commit 1e40fc4eec

View File

@@ -282,7 +282,7 @@ template<
, class HasDefaultValue // mpl::true_ or mpl::false_ , class HasDefaultValue // mpl::true_ or mpl::false_
, class Predicate , class Predicate
> >
struct arg; struct named_param;
</pre> </pre>
<p>The key parameter, <tt class="literal"><span class="pre">Predicate</span></tt> shall be a unary MPL lambda <p>The key parameter, <tt class="literal"><span class="pre">Predicate</span></tt> shall be a unary MPL lambda
expression or <a class="reference" href="../../mpl/doc/ref/Metafunction_Class.html">Metafunction Class</a> that, when applied to the expression or <a class="reference" href="../../mpl/doc/ref/Metafunction_Class.html">Metafunction Class</a> that, when applied to the
@@ -291,11 +291,11 @@ meets the function's requirements for that parameter position.</p>
<p>For example, let's say we want to restrict our <tt class="literal"><span class="pre">foo()</span></tt> so that <p>For example, let's say we want to restrict our <tt class="literal"><span class="pre">foo()</span></tt> so that
the <tt class="literal"><span class="pre">name</span></tt> parameter must be convertible to <tt class="literal"><span class="pre">const</span> <span class="pre">char*</span></tt>. the <tt class="literal"><span class="pre">name</span></tt> parameter must be convertible to <tt class="literal"><span class="pre">const</span> <span class="pre">char*</span></tt>.
We'll replace our use of the <tt class="literal"><span class="pre">name_t</span></tt> tag with a specialization We'll replace our use of the <tt class="literal"><span class="pre">name_t</span></tt> tag with a specialization
of <tt class="literal"><span class="pre">boost::arg</span></tt>:</p> of <tt class="literal"><span class="pre">boost::named_param</span></tt>:</p>
<pre class="literal-block"> <pre class="literal-block">
struct foo_keywords struct foo_keywords
: boost::keywords&lt; : boost::keywords&lt;
<strong>boost::arg&lt; <strong>boost::named_param&lt;
name_t name_t
, mpl::false_ , mpl::false_
, is_convertible&lt;mpl::_, const char*&gt; , is_convertible&lt;mpl::_, const char*&gt;
@@ -436,8 +436,7 @@ of lack of SFINAE support.</td></tr>
</div> </div>
<hr class="footer" /> <hr class="footer" />
<div class="footer"> <div class="footer">
<a class="reference" href="named_params.rst">View document source</a>. Generated on: 2004-01-17.
Generated on: 2004-01-16 23:50 UTC.
Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source. Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
</div> </div>
</body> </body>