SyTen

◆ init_env_var() [2/2]

template<typename Target >
void syten::EnvVars::init_env_var ( char const *  name,
Target &  target,
std::string const &  msg = "" 
)

Sets target to str, with str initialised from the environment variable name, if set.

If msg is set, then also prints msg.

References std::getenv(), and syten::logGI().

+ Here is the call graph for this function: