The SelfRemovingPath class. More...
#include <SelfRemovingPath.h>
Public Member Functions | |
SelfRemovingPath () | |
SelfRemovingPath constructor. | |
virtual | ~SelfRemovingPath () |
SelfRemovingPath destructor. | |
SelfRemovingPath (const SelfRemovingPath &other) | |
SelfRemovingPath copy constructor. | |
SelfRemovingPath (SelfRemovingPath &&other) | |
SelfRemovingPath move constructor. | |
SelfRemovingPath & | operator= (const SelfRemovingPath &other) |
operator = | |
SelfRemovingPath & | operator= (SelfRemovingPath &&other) |
operator = | |
SelfRemovingPath & | operator= (const std::filesystem::path &path) |
operator = | |
SelfRemovingPath (const std::filesystem::path &path) | |
SelfRemovingPath constructor. | |
Public Attributes | |
std::filesystem::path | path |
Path to be removed on destruction. | |
The SelfRemovingPath class.
Auxiliary class. Removes underlying path on destruction, if no any copies of SelfRemovingPath object have been created. Removes path on last copy destruction otherwise.
|
explicit |
SelfRemovingPath constructor.
path | path to be removed on destruction. |
SelfRemovingPath & SelfRemovingPath::operator= | ( | const std::filesystem::path & | path | ) |
operator =
path | path to be removed on destruction. |