1 """Instantiate global function."""
6 instantiate_return_type)
11 Instantiate global functions.
14 template<T = {double}>
15 T add(const T& x, const T& y);
17 def __init__(self, original, instantiations=(), new_name=
''):
23 if not original.template:
29 original.name, instantiations)
if not new_name
else new_name
46 self.
args = parser.ArgumentList(instantiated_args)
55 """Generate the C++ code for wrapping."""
57 instantiated_names = [
58 "::".join(inst.namespaces + [inst.instantiated_name()])
62 ",".join(instantiated_names))
68 return "Instantiated {}".
format(
69 super(InstantiatedGlobalFunction, self).
__repr__())