mirror of
https://github.com/boostorg/parameter.git
synced 2026-01-30 20:12:21 +00:00
19 lines
430 B
C++
19 lines
430 B
C++
|
|
#line 1703 "/home/daniel/dev/boost/trunk/libs/parameter/doc/index.rst"
|
|
#include <boost/parameter.hpp>
|
|
#line 1693 "/home/daniel/dev/boost/trunk/libs/parameter/doc/index.rst"
|
|
BOOST_PARAMETER_NAME((pass_foo, keywords) foo)
|
|
|
|
BOOST_PARAMETER_FUNCTION(
|
|
(int), f,
|
|
keywords, (required (foo, *)))
|
|
{
|
|
return foo + 1;
|
|
}
|
|
|
|
int x = f(pass_foo = 41);
|
|
#line 1704 "/home/daniel/dev/boost/trunk/libs/parameter/doc/index.rst"
|
|
int main()
|
|
{}
|
|
|