View source code
Display the source code in dmd/dtemplate.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Function dmd.dtemplate.functionResolve

Given function arguments, figure out which template function to expand, and return matching result.

void functionResolve (
  ref dmd.declaration.MatchAccumulator m,
  Dsymbol dstart,
  Loc loc,
  dmd.dscope.Scope* sc,
  dmd.root.array.Array!(dmd.root.rootobject.RootObject)* tiargs,
  Type tthis,
  ArgumentList argumentList,
  const(char)** pMessage = null
);

Parameters

NameDescription
m matching result
dstart the root of overloaded function templates
loc instantiation location
sc instantiation scope
tiargs initial list of template arguments
tthis if !NULL, the 'this' pointer argument
argumentList arguments to function
pMessage address to store error message, or null

Authors

Walter Bright

License

Boost License 1.0