MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / value_of

Function value_of

src/env.cpp:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51bool disabled(const char* name) { return not enabled(name); }
52
53std::size_t value_of(const char* name, std::size_t fallback)
54{
55 auto e = env(name);
56 if(e.empty())
57 return fallback;
58 access_envs()([&](auto& m) { m[name] = e.front(); });
59 return std::stoul(e.front());
60}
61
62std::string string_value_of(const char* name, std::string fallback)
63{

Callers 2

evalMethod · 0.70
get_num_splitsFunction · 0.70

Calls 4

envFunction · 0.85
access_envsFunction · 0.85
frontMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected