Vec.opDispatch - multiple declarations

Function Vec.opDispatch

Access the component by name.

T opDispatch(string name)() const @property
if (name.length == 1);

Function Vec.opDispatch

Assign the component by name.

void opDispatch(string name) (
  in T val
) @property
if (name.length == 1);

Function Vec.opDispatch

Access the components by swizzling.

auto opDispatch(string name)() const @property
if (name.length > 1);

Function Vec.opDispatch

Assign the components by swizzling.

void opDispatch(string name, U, size_t num) (
  in Vec!(U,num) v
) @property
if (isImplicitlyConvertible!(U, T));