Changing template parameters

Rene Zwanenburg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 16 08:08:07 PST 2017


On Monday, 16 January 2017 at 15:56:16 UTC, Jack Stouffer wrote:
> Same way you use any template parameters,
>
>      auto i = uniform!("(]")(0, 1000);

Also, if the template parameter consists of a single token you 
can omit the parens:

auto i = uniform!"(]"(0, 1000);


More information about the Digitalmars-d-learn mailing list