unqualified types in tuple
Philippe Sigaud
philippe.sigaud at gmail.com
Wed Nov 21 14:10:22 PST 2012
You can use std.typetuple.staticMap to map Unqual on each type:
import std.typetuple;
import std.stdio;
template UnqualifyTuple(T...)
{
alias staticMap!(Unqual, T) UnqualifyTuple;
}
void main()
{
alias TypeTuple!(const(int), immutable(double), string) TL;
writeln(TL.stringof);
alias UnqualifyTuple!TL UQTL;
writeln(UQTL.stringof);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20121121/080f2477/attachment.html>
More information about the Digitalmars-d-learn
mailing list