Vector.opDispatch

Single element access by name. The property is 'x', 'y', 'z', 'w', 'r', 'g', 'b' or 'a'.

  1. auto ref opDispatch()
    struct Vector(T, uint S)
    ref inout
    opDispatch
    (
    string s
    )
    ()
    if (
    s.length == 1
    )
    if (
    __traits(isArithmetic, T)
    )
  2. const(Vector!(T, s.length)) opDispatch()
  3. T opDispatch(T value)
  4. const(Vector!(T, s.length)) opDispatch(Vector!(T, s.length) value)

Return Value

Type: auto ref

selected element

Meta