|
BuildCache
|
A class for temporarily clearing an environment variable. More...
#include <env_utils.hpp>
Public Member Functions | |
| scoped_unset_env_t (const std::string &name) | |
| Temporarily clear an environment variable. More... | |
| ~scoped_unset_env_t () | |
| Restore the environment variable to its old value. | |
Private Attributes | |
| std::string | m_name |
| env_var_t | m_old_env_var |
A class for temporarily clearing an environment variable.
| bcache::scoped_unset_env_t::scoped_unset_env_t | ( | const std::string & | name | ) |
Temporarily clear an environment variable.
| name | The name of the environment variable. |
1.8.17