MCPcopy Create free account
hub / github.com/RenderKit/oidn / getEnvVarOrDefault

Function getEnvVarOrDefault

common/platform.h:338–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336
337 template<typename T>
338 inline T getEnvVarOrDefault(const std::string& name, const T& defaultValue)
339 {
340 T value = defaultValue;
341 getEnvVar(name, value);
342 return value;
343 }
344
345 template<typename T>
346 inline bool setEnvVar(const std::string& name, const T& value, bool overwrite)

Callers 1

initDeviceTypeMethod · 0.85

Calls 1

getEnvVarFunction · 0.85

Tested by

no test coverage detected