nodeBuilder

Create a simple template node constructor for declarative usage.

If the parent is a simple constructor, its initializer will be ran *after* this one. This is because the user usually specifies the parent in templates, so it has more importance.

T must be a template accepting a single parameter — Parent type will be passed to it.

  1. eponymoustemplate nodeBuilder(T, alias fun = "a")
  2. template nodeBuilder(alias T, alias Parent, alias fun = "a")
  3. alias nodeBuilder(alias T, Parent, alias fun = "a") = nodeBuilder!(T!Parent, fun)
    @safe
    alias nodeBuilder(alias T, Parent, alias fun = "a") = nodeBuilder!(T!Parent, fun)

Meta