10 #ifndef TEUCHOS_ENVVARIABLES_HPP
11 #define TEUCHOS_ENVVARIABLES_HPP
13 #include <string_view>
18 T getEnvironmentVariable(
const std::string_view environmentVariableName,
19 const T defaultValue);
21 bool idempotentlyGetNamedEnvironmentVariableAsBool(
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);
T idempotentlyGetEnvironmentVariable(T &value, bool &initialized, const std::string_view environmentVariableName, const T defaultValue)
Read a variable from the environment. Example usage: