How to add n items to TypeTuple?

denizzzka 4denizzz at gmail.com
Thu Nov 1 11:42:07 PDT 2012


For example, adding 3 strings to type tuple t:

foreach( i; 0..2 )
  alias TypeTuple!( t, string ) t; // this is wrong code

and result should be:

TypeTuple!( string, string, string );


More information about the Digitalmars-d-learn mailing list