10 #ifndef TEUCHOS_ENVVARIABLES_HPP
11 #define TEUCHOS_ENVVARIABLES_HPP
13 #include <string_view>
17 bool idempotentlyGetNamedEnvironmentVariableAsBool(
18 const char name[],
bool &initialized,
const char environmentVariableName[],
19 const bool defaultValue);
34 T &value,
bool &initialized,
const std::string_view environmentVariableName,
35 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: