How to create TypeTuple/ExpressionTuple from tuple/tuples

"Øivind" oivind.loe at gmail.com
Tue Aug 7 09:49:28 PDT 2012


On Tuesday, 7 August 2012 at 16:11:05 UTC, Andrej Mitrovic wrote:
> On 8/7/12, "Øivind" <oivind.loe at gmail.com> wrote:
>> How can I call this function with an already-constructed tuple
>> but pass the pule as an expressiontuple?
>>
>> auto v = tuple(1, 2, 3);
>> f(v);
>
> Use the .expand property:
> f(v.expand)

Works like a charm. Thanks!

The last one then becomes f(v0.expand, v1.expand)


More information about the Digitalmars-d-learn mailing list