folly::test::EnvVarSaver

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.

Synopsis

Declared in <folly/system/EnvUtil.h>

struct EnvVarSaver;

Member Functions

NameDescription
EnvVarSaver [constructor]Constructors
~EnvVarSaver [destructor]Restores the process environment captured at construction.
operator= Move-assigns the saved state from another saver.