13 [[nodiscard]] std::optional<std::string>
getEnv(std::string_view name);
16 bool setEnv(std::string_view name, std::string_view value,
bool overwrite =
true);
Portable access to system information, environment variables, files and paths.
Definition Environment.hpp:7
bool setEnv(std::string_view name, std::string_view value, bool overwrite=true)
Sets name to value, unless it is already set and overwrite is false; returns false on failure.
bool unsetEnv(std::string_view name)
Removes name from the environment; returns false on failure.
std::optional< std::string > getEnv(std::string_view name)
Value of the variable name, or std::nullopt if it is not set.