diff --git a/doc/v2/make_function.html b/doc/v2/make_function.html index 592eb37d..d64e859a 100644 --- a/doc/v2/make_function.html +++ b/doc/v2/make_function.html @@ -66,9 +66,13 @@ template <class F, class Policies> object make_function(F f, Policies const& policies) -template <class F, class Policies, class Keywords> +template <class F, class Policies, class KeywordsOrSignature> object make_function(F f, Policies const& policies, Keywords const& keywords) +"object.html#object-spec">object make_function(F f, Policies const& policies, KeywordsOrSignature const& ks) + +template <class F, class Policies, class Keywords, class Signature> +object make_function(F f, Policies const& policies, Keywords const& kw, Signature const& sig)
@@ -82,19 +86,41 @@ template <class F, class Policies, class Keywords>
Effects: Creates a Python callable object which, when called from Python, converts its arguments to C++ and calls f. If - F is a pointer-to-member-function type, the target object - of the function call (*this) will be taken from the first - Python argument, and subsequent Python arguments will be used as the - arguments to f. If policies are supplied, it + F is a pointer-to-member-function type, the target + object of the function call (*this) will be taken + from the first Python argument, and subsequent Python arguments + will be used as the arguments + to f.
+ arguments of the resulting function. +
  • If Signature + is supplied, it should be an instance of an MPL front-extensible + sequence representing the function's return type followed by + its argument types. Pass a Signature when wrapping + function object types whose signatures can't be deduced, or when + you wish to override the types which will be passed to the + wrapped function. +
    Returns: An instance of object which holds the new Python callable object.
    + +
    Caveats: An argument of pointer type may + be 0 if None is passed from Python. + An argument type which is a constant reference may refer to a + temporary which was created from the Python object for just the + duration of the call to the wrapped function, for example + a std::vector conjured up by the conversion process + from a Python list. Use a non-const reference + argument when a persistent lvalue is required.
  • +
     template <class T, class ArgList, class Generator>