How to properly use variadic templates (functions)?

rempas rempas at tutanota.com
Tue Dec 21 06:43:44 UTC 2021


On Monday, 20 December 2021 at 21:49:59 UTC, Adam D Ruppe wrote:
>
> still use
>
> foreach(arg; args)
>
> and skip that index variable.

I know I can use foreach ("static foreach" more specifically) but 
I need to be able to get the index to choose a specific argument 
because I want to do formatting (that's why I said "printf")


More information about the Digitalmars-d-learn mailing list