updateVoid

Polyfill for object.update with void update function

  1. void updateVoid(V[K] aa, K key, C create, U update)
    static if(!haveObjectUpdateWithVoidUpdate)
    void
    updateVoid
    (
    K
    V
    C
    U
    )
    (
    ref V[K] aa
    ,
    K key
    ,
    scope C create
    ,
    scope U update
    )
    if (
    is(typeof(create()) : V) &&
    is(typeof(update(aa[K.init])) == void)
    )
  2. alias updateVoid = object.update

Meta