mirror of
https://github.com/boostorg/parameter.git
synced 2026-01-19 16:32:13 +00:00
Compare commits
4 Commits
svn-branch
...
boost-1.33
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
94a1deae4c | ||
|
|
43f2424a56 | ||
|
|
fd29ba2c00 | ||
|
|
0bea8c0b9b |
@@ -620,8 +620,11 @@ namespace graphs
|
||||
void depth_first_search(A0 const& a0, A1 const& a1)
|
||||
{
|
||||
core::depth_first_search(dfs_params()(a0,a1));
|
||||
}
|
||||
<span class="doublesize">⋮</span>
|
||||
} <span class="vellipsis">
|
||||
.
|
||||
.
|
||||
.
|
||||
</span>
|
||||
template <class A0, class A1, …class A4>
|
||||
void depth_first_search(A0 const& a0, A1 const& a1, …A4 const& a4)
|
||||
{
|
||||
@@ -788,8 +791,11 @@ namespace graphs
|
||||
, typename dfs_params::match<A0,A1>::type p = dfs_params())
|
||||
{
|
||||
core::depth_first_search(<strong>p</strong>(a0,a1));
|
||||
}
|
||||
<span class="doublesize">⋮</span>
|
||||
} <span class="vellipsis">
|
||||
.
|
||||
.
|
||||
.
|
||||
</span>
|
||||
template <class A0, class A1, …class A4>
|
||||
void depth_first_search(
|
||||
A0 const& a0, A1 const& a1, …A4 const& A4
|
||||
@@ -833,8 +839,11 @@ namespace graphs
|
||||
, <strong>BOOST_PARAMETER_MATCH(dfs_params, (A0)(A1), p)</strong>)
|
||||
{
|
||||
core::depth_first_search(p(a0,a1));
|
||||
}
|
||||
<span class="doublesize">⋮</span>
|
||||
} <span class="vellipsis">
|
||||
.
|
||||
.
|
||||
.
|
||||
</span>
|
||||
template <class A0, class A1, …class A4>
|
||||
void depth_first_search(
|
||||
A0 const& a0, A1 const& a1, …A4 const& A4
|
||||
@@ -917,7 +926,7 @@ typename parameter::binding<
|
||||
];
|
||||
</pre>
|
||||
<div class="sidebar">
|
||||
<p class="first sidebar-title">Memnonics</p>
|
||||
<p class="first sidebar-title">Mnemnonics</p>
|
||||
<p class="last">To remember the difference between <tt class="docutils literal"><span class="pre">|</span></tt> and <tt class="docutils literal"><span class="pre">||</span></tt>, recall that
|
||||
<tt class="docutils literal"><span class="pre">||</span></tt> normally uses short-circuit evaluation: its second
|
||||
argument is only evaluated if its first argument is <tt class="docutils literal"><span class="pre">false</span></tt>.
|
||||
@@ -1136,12 +1145,12 @@ define</p>
|
||||
typedef T result_type;
|
||||
|
||||
template <class A1, class A2>
|
||||
T operator() { return T(a1,a2); }
|
||||
T operator()(A1 a1, A2 a2) { return T(a1,a2); }
|
||||
};
|
||||
|
||||
and use Boost.Bind_ to generate the function object::
|
||||
and use `Boost.Bind`_ to generate the function object::
|
||||
|
||||
boost::bind(construct2<default_color_map>,num_vertices(g),i)
|
||||
boost::bind(construct2<default_color_map>(),num_vertices(g),i)
|
||||
</pre>
|
||||
</td></tr>
|
||||
</tbody>
|
||||
@@ -1182,7 +1191,7 @@ information on SFINAE.</td></tr>
|
||||
</div>
|
||||
<hr class="docutils footer" />
|
||||
<div class="footer">
|
||||
Generated on: 2005-07-28 16:32 UTC.
|
||||
Generated on: 2005-08-05 14:51 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.
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -410,8 +410,11 @@ struct parameters
|
||||
<a class="reference" href="#argumentpack"><span class="concept">ArgumentPack</span></a> <a class="reference" href="#id12">operator()</a>(A0 const& a0) const;
|
||||
|
||||
template <class A0, class A1>
|
||||
<a class="reference" href="#argumentpack"><span class="concept">ArgumentPack</span></a> <a class="reference" href="#id12">operator()</a>(A0 const& a0, A1 const& a1) const;
|
||||
<span class="doublesize">⋮</span>
|
||||
<a class="reference" href="#argumentpack"><span class="concept">ArgumentPack</span></a> <a class="reference" href="#id12">operator()</a>(A0 const& a0, A1 const& a1) const; <span class="vellipsis">
|
||||
.
|
||||
.
|
||||
.
|
||||
</span>
|
||||
template <class A0, class A1, …class Aβ>
|
||||
<a class="reference" href="#argumentpack"><span class="concept">ArgumentPack</span></a> <a class="reference" href="#id12">operator()</a>(A0 const& a0, A1 const& a1, …Aβ const& aβ) const;
|
||||
};
|
||||
@@ -480,8 +483,11 @@ every <em>j</em> in 0…β, either:</p>
|
||||
<span class="target" id="id12"></span><dl class="docutils">
|
||||
<dt><tt class="docutils literal"><span class="pre">operator()</span></tt></dt>
|
||||
<dd><pre class="first literal-block">
|
||||
template <class A0> <a class="reference" href="#argumentpack"><span class="concept">ArgumentPack</span></a> operator()(A0 const& a0) const;
|
||||
<span class="doublesize">⋮</span>
|
||||
template <class A0> <a class="reference" href="#argumentpack"><span class="concept">ArgumentPack</span></a> operator()(A0 const& a0) const; <span class="vellipsis">
|
||||
.
|
||||
.
|
||||
.
|
||||
</span>
|
||||
template <class A0, …class Aβ> <a class="reference" href="#argumentpack"><span class="concept">ArgumentPack</span></a> <a class="reference" href="#id12">operator()</a>(A0 const& a0, …Aβ const& aβ) const;
|
||||
</pre>
|
||||
<table class="last docutils field-list" frame="void" rules="none">
|
||||
@@ -644,8 +650,11 @@ r name(
|
||||
, typename <strong>p</strong>::match<A1,A2,…A<strong>l</strong>,A##<a class="reference" href="../../../preprocessor/doc/ref/inc.html">BOOST_PP_INC</a>(<strong>l</strong>)>::type p = <strong>p</strong>())
|
||||
{
|
||||
return <strong>name</strong>_with_named_params(<strong>p</strong>(x1,x2,…x<strong>l</strong>,x##<a class="reference" href="../../../preprocessor/doc/ref/inc.html">BOOST_PP_INC</a>(<strong>l</strong>)));
|
||||
}
|
||||
<span class="doublesize">⋮</span>
|
||||
} <span class="vellipsis">
|
||||
.
|
||||
.
|
||||
.
|
||||
</span>
|
||||
template <class A1, class A2, …class A<strong>h</strong>>
|
||||
r name(
|
||||
A1 const& a1, A2 const& a2, …A<strong>h</strong> const& x<strong>h</strong>
|
||||
@@ -769,7 +778,7 @@ where it could make a difference.</td></tr>
|
||||
</div>
|
||||
<hr class="docutils footer" />
|
||||
<div class="footer">
|
||||
Generated on: 2005-07-28 16:33 UTC.
|
||||
Generated on: 2005-08-05 14:58 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.
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -13,6 +13,12 @@ img {
|
||||
vertical-align: middle
|
||||
}
|
||||
|
||||
span.vellipsis {
|
||||
line-height: 30% ;
|
||||
font-size: 200% ;
|
||||
}
|
||||
|
||||
|
||||
PRE
|
||||
{
|
||||
FONT-FAMILY: monospace ;
|
||||
|
||||
@@ -45,8 +45,8 @@ __ ../../../../index.htm
|
||||
.. role:: concept
|
||||
:class: concept
|
||||
|
||||
.. role:: large
|
||||
:class: doublesize
|
||||
.. role:: vellipsis
|
||||
:class: vellipsis
|
||||
|
||||
.. section-numbering::
|
||||
|
||||
@@ -629,8 +629,11 @@ to its ``operator()`` and forwarding the result on to
|
||||
void depth_first_search(A0 const& a0, A1 const& a1)
|
||||
{
|
||||
core::depth_first_search(dfs_params()(a0,a1));
|
||||
}
|
||||
:large:`⋮`
|
||||
} :vellipsis:`\
|
||||
.
|
||||
.
|
||||
.
|
||||
`
|
||||
template <class A0, class A1, …class A4>
|
||||
void depth_first_search(A0 const& a0, A1 const& a1, …A4 const& a4)
|
||||
{
|
||||
@@ -831,8 +834,11 @@ Now we add a special defaulted argument to each of our
|
||||
, typename dfs_params::match<A0,A1>::type p = dfs_params())
|
||||
{
|
||||
core::depth_first_search(**p**\ (a0,a1));
|
||||
}
|
||||
:large:`⋮`
|
||||
} :vellipsis:`\
|
||||
.
|
||||
.
|
||||
.
|
||||
`
|
||||
template <class A0, class A1, …class A4>
|
||||
void depth_first_search(
|
||||
A0 const& a0, A1 const& a1, …A4 const& A4
|
||||
@@ -886,8 +892,11 @@ __ http://boost-consulting.com/mplbook/preprocessor.html#sequences
|
||||
, **BOOST_PARAMETER_MATCH(dfs_params, (A0)(A1), p)**)
|
||||
{
|
||||
core::depth_first_search(p(a0,a1));
|
||||
}
|
||||
:large:`⋮`
|
||||
} :vellipsis:`\
|
||||
.
|
||||
.
|
||||
.
|
||||
`
|
||||
template <class A0, class A1, …class A4>
|
||||
void depth_first_search(
|
||||
A0 const& a0, A1 const& a1, …A4 const& A4
|
||||
@@ -985,7 +994,7 @@ Boost.Lambda_: [#bind]_
|
||||
**|| boost::lambda::construct<default_color_map>(num_vertices(g),i)**
|
||||
];
|
||||
|
||||
.. sidebar:: Memnonics
|
||||
.. sidebar:: Mnemnonics
|
||||
|
||||
To remember the difference between ``|`` and ``||``, recall that
|
||||
``||`` normally uses short-circuit evaluation: its second
|
||||
@@ -1226,12 +1235,12 @@ __ ../../../graph/doc/bgl_named_params.html
|
||||
typedef T result_type;
|
||||
|
||||
template <class A1, class A2>
|
||||
T operator() { return T(a1,a2); }
|
||||
T operator()(A1 a1, A2 a2) { return T(a1,a2); }
|
||||
};
|
||||
|
||||
and use Boost.Bind_ to generate the function object::
|
||||
and use `Boost.Bind`_ to generate the function object::
|
||||
|
||||
boost::bind(construct2<default_color_map>,num_vertices(g),i)
|
||||
boost::bind(construct2<default_color_map>(),num_vertices(g),i)
|
||||
|
||||
__ http://www.boost.org/regression/release/user/lambda.html
|
||||
.. _Boost.Bind: ../../../libs/bind/index.html
|
||||
|
||||
@@ -41,9 +41,8 @@ __ ../../../../index.htm
|
||||
.. |ArgumentPack| replace:: :concept:`ArgumentPack`
|
||||
.. |ParameterSpec| replace:: :concept:`ParameterSpec`
|
||||
|
||||
|
||||
.. role:: large
|
||||
:class: doublesize
|
||||
.. role:: vellipsis
|
||||
:class: vellipsis
|
||||
|
||||
.. section-numbering::
|
||||
:depth: 2
|
||||
@@ -380,8 +379,11 @@ __ ../../../../boost/parameter/parameters.hpp
|
||||
|ArgumentPack|_ `operator()`_\(A0 const& a0) const;
|
||||
|
||||
template <class A0, class A1>
|
||||
|ArgumentPack|_ `operator()`_\(A0 const& a0, A1 const& a1) const;
|
||||
:large:`⋮`
|
||||
|ArgumentPack|_ `operator()`_\(A0 const& a0, A1 const& a1) const; :vellipsis:`\
|
||||
.
|
||||
.
|
||||
.
|
||||
`
|
||||
template <class A0, class A1, …class A\ β>
|
||||
|ArgumentPack|_ `operator()`_\(A0 const& a0, A1 const& a1, …A\ β const& a\ β) const;
|
||||
};
|
||||
@@ -436,8 +438,11 @@ __ ../../../../boost/parameter/parameters.hpp
|
||||
``operator()``
|
||||
.. parsed-literal::
|
||||
|
||||
template <class A0> |ArgumentPack|_ operator()(A0 const& a0) const;
|
||||
:large:`⋮`
|
||||
template <class A0> |ArgumentPack|_ operator()(A0 const& a0) const; :vellipsis:`\
|
||||
.
|
||||
.
|
||||
.
|
||||
`
|
||||
template <class A0, …class A\ β> |ArgumentPack|_ `operator()`_\(A0 const& a0, …A\ β const& a\ β) const;
|
||||
|
||||
:Returns:
|
||||
@@ -577,8 +582,11 @@ Generates
|
||||
, typename **p**::match<A1,A2,…A\ **l**,A\ ##\ BOOST_PP_INC_\ (**l**)>::type p = **p**\ ())
|
||||
{
|
||||
return **name**\ _with_named_params(**p**\ (x1,x2,…x\ **l**,x\ ##\ BOOST_PP_INC_\ (**l**)));
|
||||
}
|
||||
:large:`⋮`
|
||||
} :vellipsis:`\
|
||||
.
|
||||
.
|
||||
.
|
||||
`
|
||||
template <class A1, class A2, …class A\ **h**>
|
||||
r name(
|
||||
A1 const& a1, A2 const& a2, …A\ **h** const& x\ **h**
|
||||
|
||||
Reference in New Issue
Block a user