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.TemplateDeclaration.scopeForTemplateParameters

Create a scope for the parameters of the TemplateInstance ti in the parent scope sc from the ScopeDsymbol paramsym.

extern(C++) dmd.dscope.Scope* scopeForTemplateParameters (
  TemplateInstance ti,
  dmd.dscope.Scope* sc
);

If paramsym is null a new ScopeDsymbol is used in place of paramsym.

Parameters

NameDescription
ti the TemplateInstance whose parameters to generate the scope for.
sc the parent scope of ti

Returns

a scope for the parameters of ti

Authors

Walter Bright

License

Boost License 1.0