Extracting Params of Templated Type
    Nick Sabalausky 
    SeeWebsiteToContactMe at semitwist.com
       
    Thu Apr  3 21:44:52 PDT 2014
    
    
  
If you have a templated type, is there a way to get the compile-time 
parameters it was instantiated with?
Ie:
----------------------
struct Foo(T) {}
alias MyFoo = Foo!int;
----------------------
Is there a way to inspect MyFoo to get its T type (in this case, 'int')? 
*Without* actually making any changes to Foo to explicitly support this?
    
    
More information about the Digitalmars-d-learn
mailing list