Joining AliasSeq/TypeTuple s

Voitech via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Mar 29 02:33:40 PDT 2016


Hi, i want to join two or more tupples in to one, with mixing the 
indexes like roundRobin but in compile time.

unittest{
import std.meta;
alias first=AliasSeq!(int, string,bool);
alias second=AliasSeq!("abc","def","ghi");
alias third=...

static assert(third==AliasSeq!(int, "abc", string, "def", bool, 
"ghi"));
}


How to obtain this kind of functionality ? Is there maybe some 
builin template for this in phobos ? I couldn't find this.

Thank you
Voitech.


More information about the Digitalmars-d-learn mailing list