mirror of
https://github.com/boostorg/utility.git
synced 2025-08-02 22:34:31 +02:00
name changes
[SVN r1893]
This commit is contained in:
@@ -282,7 +282,7 @@ template<
|
||||
, class HasDefaultValue // mpl::true_ or mpl::false_
|
||||
, class Predicate
|
||||
>
|
||||
struct arg;
|
||||
struct named_param;
|
||||
</pre>
|
||||
<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
|
||||
@@ -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
|
||||
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
|
||||
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">
|
||||
struct foo_keywords
|
||||
: boost::keywords<
|
||||
<strong>boost::arg<
|
||||
<strong>boost::named_param<
|
||||
name_t
|
||||
, mpl::false_
|
||||
, is_convertible<mpl::_, const char*>
|
||||
@@ -436,8 +436,7 @@ of lack of SFINAE support.</td></tr>
|
||||
</div>
|
||||
<hr class="footer" />
|
||||
<div class="footer">
|
||||
<a class="reference" href="named_params.rst">View document source</a>.
|
||||
Generated on: 2004-01-16 23:50 UTC.
|
||||
Generated on: 2004-01-17.
|
||||
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>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user