simpleConstructor

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 simpleConstructor(T, alias fun = "a")
  2. template simpleConstructor(alias T, alias Parent, alias fun = "a")
  3. alias simpleConstructor(alias T, Parent, alias fun = "a") = simpleConstructor!(T!Parent, fun)
    @safe
    alias simpleConstructor(alias T, Parent, alias fun = "a") = simpleConstructor!(T!Parent, fun)

Meta