Ugly c++ syntax

Rumbu rumbu at rumbu.ro
Sat Feb 6 08:18:05 UTC 2021


On Saturday, 6 February 2021 at 00:35:12 UTC, Ali Çehreli wrote:
> On 2/5/21 1:10 PM, Rumbu wrote:
>
>> I gave up after reading a lot, but I didn't manage to 
>> understand the meaning "&& ..."
>
> I think it's the universal reference.

Thank you Ali, but nope, it's "parameter pack folding". This 
allows starting with C++ 17 to have recursive templates in one 
liner. Basically, it means "&& template(the rest of arguments)"

https://github.com/microsoft/cppwin32/blob/8a6b2507734dd9e9892059b5794f35109688fc20/cppwin32/winmd/impl/winmd_reader/database.h#L490









More information about the Digitalmars-d-learn mailing list