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.

atomicDg
(
size_t targetIndexA = size_t.max
Impl
Args...
)
(
Impl impl
,
Args args
)

Meta