Vector.opDispatch

Get/set vector by access string.

only: if( AS.length > 0 && isOneSymbolPerFieldForAnyAccessString(AS,VVASES,VVASVS) )

  1. T opDispatch [@property getter]
  2. T opDispatch [@property getter]
  3. auto opDispatch [@property getter]
  4. U opDispatch [@property setter]
    struct Vector(size_t N, T, alias string AS = "")
    pure @property
    static if(AS.length > 0)
    static if(isOneSymbolPerFieldForAnyAccessString(AS, VVASES, VVASVS))
    opDispatch
    (
    string v
    U
    )
    (
    in U b
    )
    if (
    v.length > 1 &&
    oneOfAnyAccessAll(AS, v, VVASES, VVASVS)
    &&
    isCompatibleArrayAccessString(v.length, v)
    &&
    (
    isCompatibleVector!(v.length, T, U) ||
    (
    is(typeof(T(U.datatype.init)))
    )
    )
    )
    if (
    isCompatibleArrayAccessStrings(N, AS, VVASES, VVASVS) ||
    AS.length == 0
    )

Meta