How do I pass a template type as parameter?

Adam D. Ruppe destructionator at gmail.com
Tue Apr 16 21:24:54 UTC 2019


On Tuesday, 16 April 2019 at 21:07:51 UTC, Machine Code wrote:
> void f(appender!string buffer) { }

appender isn't a type, it is a helper function that returns a 
type called Appender:

http://dpldocs.info/experimental-docs/std.array.appender.1.html

http://dpldocs.info/experimental-docs/std.array.Appender.html



So try like `void f(Appender!string buffer) {}`


More information about the Digitalmars-d-learn mailing list