template template parameter
Caligo
iteronvexor at gmail.com
Thu Mar 31 06:23:50 PDT 2011
I should have been more clear, but my actual question is how do I
access the parameters of a template parameter. My example works, but
I wanted to know if there is a different and perhaps a better of doing
it.
In your example it would look something like this:
struct SomeContainer(T, int x, int y){ }
struct Foo(alias ContainerType){
// e.g.
int my_x = ContainerType.x * 2;
int my_y = ContainerType.y * 2;
}
More information about the Digitalmars-d-learn
mailing list