cachedDg

Wrap an operation so that it is skipped entirely if the target already exists. Implies atomic.

  1. auto cached(ParameterTypeTuple!impl args)
  2. auto cachedDg(Impl impl, Args args)
    cachedDg
    (
    size_t targetIndexA = size_t.max
    Impl
    Args...
    )
    (
    Impl impl
    ,
    Args args
    )

Meta