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,
  dmd.globals.Loc loc,
  dmd.dscope.Scope* sc,
  dmd.root.array.Array!(dmd.root.rootobject.RootObject)* tiargs,
  Type tthis,
  dmd.root.array.Array!(dmd.expression.Expression)* fargs,
  const(char)** pMessage = null


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
fargs arguments to function
pMessage address to store error message, or null


Walter Bright


Boost License 1.0