2 * This module was renamed to disambiguate the term tuple, use
3 * $(MREF std, meta) instead.
5 * Copyright: Copyright The D Language Foundation 2005 - 2015.
6 * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
8 * Source: $(PHOBOSSRC std/typetuple.d)
10 * $(SCRIPT inhibitQuickIndex = 1;)
14 public import std.meta;
17 * Alternate name for $(REF AliasSeq, std,meta) for legacy compatibility.
19 alias TypeTuple = AliasSeq;
25 alias TL = TypeTuple!(int, double);
27 int foo(TL td) // same as int foo(int, double);
29 return td[0] + cast(int) td[1];
31 assert(foo(1, 2.5) == 3);
37 alias TL = TypeTuple!(int, double);
39 alias Types = TypeTuple!(TL, char);
40 static assert(is(Types == TypeTuple!(int, double, char)));