mirror of
https://github.com/boostorg/utility.git
synced 2025-08-03 06:44:37 +02:00
fixed typo
[SVN r2023]
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
.. |(logo)| image:: ../../../c++boost.gif
|
.. |(logo)| image:: ../../../c++boost.gif
|
||||||
:alt: Boost
|
:alt: Boost
|
||||||
|
:class: boost-logo
|
||||||
|
|
||||||
__ ../../../index.htm
|
__ ../../../index.htm
|
||||||
|
|
||||||
@@ -370,19 +371,19 @@ we supply a macro that generates the boilerplate code.
|
|||||||
Synopsis::
|
Synopsis::
|
||||||
|
|
||||||
BOOST_NAMED_PARAMS_FUN(
|
BOOST_NAMED_PARAMS_FUN(
|
||||||
return_type, function_name, keywords_type
|
return_type, function_name
|
||||||
, min_arity, max_arity
|
, min_arity, max_arity, keywords_type
|
||||||
);
|
);
|
||||||
|
|
||||||
To generate all the forwarding functions and the implementation
|
To generate all the forwarding functions and the implementation
|
||||||
function for our example, we need only apply
|
function for our example, we need only apply
|
||||||
``BOOST_NAMED_PARAMS_FUN`` this way::
|
``BOOST_NAMED_PARAMS_FUN`` this way::
|
||||||
|
|
||||||
BOOST_NAMED_PARAMS_FUN(void, foo, foo_keywords, 0, 2)
|
BOOST_NAMED_PARAMS_FUN(void, foo, 0, 2, foo_keywords)
|
||||||
{
|
{
|
||||||
std::cout
|
std::cout
|
||||||
<< params[name | "unnamed"] << " = "
|
<< p[name | "unnamed"] << " = "
|
||||||
<< params[value | 0] << "\n";
|
<< p[value | 0] << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
Portability
|
Portability
|
||||||
|
Reference in New Issue
Block a user