Often there is a pattern
- of writing an output to temporary file(bla.txt.tmp)
- deleting the original (rm bla.txt)
- renaming a new one(bla.txt.tmp -> bla.txt)
Is there any utility function in std::filesystem to do this or I need to do steps one by one using rename and remove.