RAII class allowing scoped changes to the process environment. The environment state at the time of its construction is restored at the time of its destruction.
Declared in <folly/system/EnvUtil.h>
struct EnvVarSaver;
| Name | Description |
|---|---|
EnvVarSaver [constructor] | Constructors |
~EnvVarSaver [destructor] | Restores the process environment captured at construction. |
operator= | Move-assigns the saved state from another saver. |