@@ -96,10 +96,10 @@ <h2><a name="functions"></a>Functions</h2>
9696 to < code > f</ code > . < ul >
9797< li > If < code > policies</ code > are supplied, it
9898 will be applied to the function as described < a href =
99- "CallPolicies.html "> here</ a > .
99+ "CallPolicies.html "> here</ a > .
100100< li > If < code > keywords</ code > are
101101 supplied, the keywords will be applied in order to the final
102- arguments of the resulting function.
102+ arguments of the resulting function.
103103< li > If < code > Signature</ code >
104104 is supplied, it should be an instance of an < a
105105 href ="../../../mpl/doc/refmanual/front-extensible-sequence.html "> MPL front-extensible
@@ -125,36 +125,33 @@ <h2><a name="functions"></a>Functions</h2>
125125 </ dl >
126126
127127< pre >
128- < a name =
129- "make_constructor-spec "> </ a > template <class T, class ArgList, class Generator>
130- < a href ="object.html#object-spec "> object</ a > make_constructor();
131-
132- template <class ArgList, class Generator, class Policies>
128+ < a name ="make_constructor-spec "> template <class F></ a >
129+ < a href ="object.html#object-spec "> object</ a > make_constructor(F f)
130+
131+ template <class F, class Policies>
132+ < a href =
133+ "object.html#object-spec "> object</ a > make_constructor(F f, Policies const& policies)
134+
135+ template <class F, class Policies, class KeywordsOrSignature>
136+ < a href =
137+ "object.html#object-spec "> object</ a > make_constructor(F f, Policies const& policies, KeywordsOrSignature const& ks)
138+
139+ template <class F, class Policies, class Keywords, class Signature>
133140< a href =
134- "object.html#object-spec "> object</ a > make_constructor(Policies const& policies)
141+ "object.html#object-spec "> object</ a > make_constructor(F f, Policies const& policies, Keywords const& kw, Signature const& sig )
135142</ pre >
136143
137144 < dl class ="function-semantics ">
138- < dt > < b > Requires:</ b > < code > T</ code > is a class type.
139- < code > Policies</ code > is a model of < a href =
140- "CallPolicies.html "> CallPolicies</ a > . < code > ArgList</ code > is an < a
141- href ="../../../mpl/doc/refmanual/forward-sequence.html "> MPL sequence</ a > of C++ argument
142- types (< i > A1, A2,... AN</ i > ) such that if
143- < code > a1, a2</ code > ... < code > aN</ code > are objects of type
144- < i > A1, A2,... AN</ i > respectively, the expression < code > new
145- Generator::apply<T>::type(a1, a2</ code > ... < code > aN</ code > )
146- is valid. Generator is a model of < a href =
147- "HolderGenerator.html "> HolderGenerator</ a > .</ dt >
145+ < dt > < b > Requires:</ b > < code > F</ code > is a
146+ function pointer type. If < code > policies</ code > are supplied, it must
147+ be a model of < a href ="CallPolicies.html "> CallPolicies</ a > . If
148+ < code > kewords</ code > are supplied, it must be the result of a < a href =
149+ "args.html#keyword-expression "> < em > keyword-expression</ em > </ a >
150+ specifying no more arguments than the < a href =
151+ "definitions.html#arity "> arity</ a > of < code > f</ code > .</ dt >
148152
149153 < dt > < b > Effects:</ b > Creates a Python callable object which, when called
150- from Python, expects its first argument to be a Boost.Python extension
151- class object. It converts its remaining its arguments to C++ and passes
152- them to the constructor of a dynamically-allocated
153- < code > Generator::apply<T>::type</ code > object, which is then
154- installed in the extension class object. In the second form, the
155- < code > policies</ code > are applied to the arguments and result (< a href =
156- "http://www.python.org/doc/current/lib/bltin-null-object.html "> None</ a > )
157- of the Python callable object</ dt >
154+ from Python, converts its arguments to C++ and calls < code > f</ code > .</ dt >
158155
159156 < dt > < b > Returns:</ b > An instance of < a href =
160157 "object.html#object-spec "> object</ a > which holds the new Python
@@ -186,7 +183,7 @@ <h2><a name="examples"></a>Example</h2>
186183 def("choose_function", choose_function);
187184}
188185</ pre >
189- It can be used this way in Python:
186+ It can be used this way in Python:
190187< pre >
191188>>> from make_function_test import *
192189>>> f = choose_function(1)
0 commit comments