OpAssign

Wrap an operator assignment overload.

Members

Manifest constants

op
enum op;
Undocumented in source.

Static functions

call
void call()
Undocumented in source. Be warned that the author may not have intended to support it.

Templates

Inner
template Inner(C)
Undocumented in source.
shim
template shim(size_t i, T)
Undocumented in source.

Variables

needs_shim
enum bool needs_shim;
Undocumented in source.

Parameters

_op

Base operator to wrap

rhs_t

(optional) Type of opOpAssign's parameter for disambiguation if there are multiple overloads.

Examples

class Foo{
    int _j;
    void opOpAssign(string op)(int i) if(op == "+"){
        _j = i;
    }
}

class_wrap!(Foo,
    OpAssign!("+"));

Meta