UnaryOperators

Undocumented in source.

Members

Aliases

UnaryOperators
alias UnaryOperators = Filter!(hasOperator, overloadable)
Undocumented in source.
overloadable
alias overloadable = AliasSeq!("-", "+", "~", "*", "++", "--")
Undocumented in source.

Enums

hasOperator
eponymoustemplate hasOperator(string op)
Undocumented in source.

Examples

static struct Struct {
    int opUnary(string op)() if(op == "+") { return 42; }
    int opUnary(string op)() if(op == "~") { return 33; }
}

static assert([UnaryOperators!Struct] == ["+", "~"]);

Meta