TRMap

テンプレート版レンジでの、$(D_CODE std.algorithm.map)に相当します。

template TRMap (
alias tmpl
alias TR
) if (
isTemplateRange!TR
) {
enum empty;
enum empty;
}

Examples

1 alias Ts = TypeTuple!(int, long, char);
2 alias ToConstArray(T) = const(T)[];
3 alias Result = ToTuple!(TRMap!(ToConstArray, ToTRange!Ts));
4 
5 static assert(is(Result
6                   == TypeTuple!(const(int)[],
7                                 const(long)[],
8                                 const(char)[])));

Meta