atomicDg

Wrap an operation which creates a file or directory, so that it is created safely and, for files, atomically (by performing the underlying operation to a temporary location, then renaming the completed file/directory to the actual target location). targetName specifies the name of the parameter containing the target file/directory.

  1. auto atomic(staticMap!(Unqual, ParameterTypeTuple!impl) args)
  2. auto atomic(staticMap!(Unqual, ParameterTypeTuple!impl) args)
  3. auto atomicDg(Impl impl, Args args)
    atomicDg
    (
    size_t targetIndexA = size_t.max
    Impl
    Args...
    )
    (
    Impl impl
    ,
    Args args
    )

Meta