Tuple/TypeTuple etc.

Timon Gehr timon.gehr at gmx.ch
Sat Aug 17 07:10:03 PDT 2013


On 08/17/2013 04:04 PM, Dicebot wrote:
> On Saturday, 17 August 2013 at 13:55:10 UTC, John Colvin wrote:
>>> And std.typecons.Tuple is completely different beast, it simply a
>>> template struct.
>>
>> Yes, as I said: It's a wrapper around an instantiation of a type-tuple.
>
> By that logic every single possible template with variadic parameters is
> wrapper around instantiation of type tuple. std.typecons.Tuple does not
> store expression tuple inside so I don't think it is legal to call it a
> "wrapper". Simply pseudo-anonymous struct with pseudo-anonymous fields.

std.typecons.Tuple!(...).field is an "expression tuple".


More information about the Digitalmars-d mailing list