MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / GetValueOrDefault

Method GetValueOrDefault

WinArk/Settings.h:138–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136
137 template<typename T>
138 T GetValueOrDefault(PCWSTR name, const T& def = T()) const {
139 auto it = _settings.find(name);
140 if (it == _settings.end())
141 return def;
142 ATLASSERT(it->second.Size == sizeof(T));
143 return *(T*)it->second.Buffer.get();
144 }
145
146 int GetInt32(PCWSTR name) const;
147

Callers

nothing calls this directly

Calls 1

endMethod · 0.45

Tested by

no test coverage detected