Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

overloads.hpp

Introduction
overload-dispatch-expressions
OverloadDispatcher Concept
Macros
Example

Defines facilities for generating families of overloaded Python functions and extension class methods from C++ functions and member functions with default arguments, or from similar families of C++ overloads

An overload-dispatch-expression is used to describe a family of overloaded methods to be generated for an extension class. It has the following properties:

docstring

An ntbs whose value will bound to the methods' __doc__ attribute

keywords

A keyword-expression which will be used to name (a trailing subsequence of) the arguments to the generated methods.

call policies

An instance of some type which models CallPolicies.

minimum arity

The minimum number of arguments to be accepted by a generated method overload.

maximum arity

The maximum number of arguments to be accepted by a generated method overload.


PrevUpHomeNext