MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / ValueOrDefault

Function ValueOrDefault

CodeGenerator.cpp:288–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286
287template<typename T>
288static T ValueOrDefault(bool b, T v)
289{
290 if(b) {
291 return v;
292 }
293
294 return {};
295}
296//-----------------------------------------------------------------------------
297
298template<typename T>

Callers 4

InsertArgMethod · 0.85
EllipsisFunction · 0.85
EllipsisSpaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected