Default template type for class?

Adam D. Ruppe destructionator at gmail.com
Tue Dec 4 09:00:03 PST 2012


BTW you can do:

class myclass_custom(T = int) {}

alias myclass_custom!int myclass;


Then use myclass.whatever and you get int. If you want a custom 
type then, you'd use the other name (myclass_custom!ubyte for 
instance)


More information about the Digitalmars-d-learn mailing list