s/type tuple/template pack/g please
    Ali Çehreli 
    acehreli at yahoo.com
       
    Wed Aug 21 11:50:29 PDT 2013
    
    
  
On 08/21/2013 11:40 AM, Atash wrote:
 > I don't see wording 'template pack' being problematic, assuming that 
there's
 > really no other way to use them but through templates (which AFAIK they
 > can't).
TypeTuple can represent function parameter lists and array literal lists 
as well:
import std.typetuple;
void func(int, int)
{}
struct S(int a, int b)
{}
void main()
{
     alias tt = TypeTuple!(1, 2);
     func(tt);
     auto o = S!tt();
     auto arr = [ tt ];
}
Ali
    
    
More information about the Digitalmars-d
mailing list