Vector.opDispatch

Get/set element data by access string.

only: if( AS.length > 0 )

  1. T opDispatch [@property getter]
    struct Vector(size_t N, T, alias string AS = "")
    pure @property ref
    static if(AS.length > 0)
    T
    opDispatch
    (
    string v
    )
    ()
    if (
    getIndex(AS, v, VVASES, VVASVS) != -1
    )
    if (
    isCompatibleArrayAccessStrings(N, AS, VVASES, VVASVS) ||
    AS.length == 0
    )
  2. T opDispatch [@property getter]
  3. auto opDispatch [@property getter]
  4. U opDispatch [@property setter]

Meta