On Friday, 25 October 2019 at 06:40:19 UTC, lili wrote:
why need defined a alias Min in Min template?
https://dlang.org/spec/template.html#implicit_template_properties
On Friday, 25 October 2019 at 06:40:19 UTC, lili wrote:
Hi:
What is the alias Min = xxx mean? why need defined a alias Min
in Min template?
```
template Min(alias pred, Args...)
if (Args.length > 0 && __traits(isTemplate, pred))
{
static if (Args.length == 1)
{
alias Min =
Hi:
What is the alias Min = xxx mean? why need defined a alias Min in
Min template?
```
template Min(alias pred, Args...)
if (Args.length > 0 && __traits(isTemplate, pred))
{
static if (Args.length == 1)
{
alias Min = Alias!(Args[0]);
}
else static if (isLess!(pred,