10 #ifndef TEUCHOS_ENVVARIABLES_HPP
11 #define TEUCHOS_ENVVARIABLES_HPP
13 #include <string_view>
19 const T defaultValue);
22 const char name[],
bool &initialized,
const char environmentVariableName[],
23 const bool defaultValue);
38 T &value,
bool &initialized,
const std::string_view environmentVariableName,
39 const T defaultValue);
bool idempotentlyGetNamedEnvironmentVariableAsBool(const char name[], bool &initialized, const char environmentVariableName[], const bool defaultValue)
T idempotentlyGetEnvironmentVariable(T &value, bool &initialized, const std::string_view environmentVariableName, const T defaultValue)
Read a variable from the environment. Example usage:
T getEnvironmentVariable(const std::string_view environmentVariableName, const T defaultValue)