atomic

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)
    atomic
    (
    alias impl
    string targetName = targetParameterNames
    )
    (
    staticMap!(Unqual, ParameterTypeTuple!impl) args
    )
  2. auto atomic(staticMap!(Unqual, ParameterTypeTuple!impl) args)

Meta