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

Function ValueOr

CodeGenerator.cpp:299–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297
298template<typename T>
299static T ValueOr(bool b, T val, T el)
300{
301 if(b) {
302 return val;
303 }
304
305 return el;
306}
307//-----------------------------------------------------------------------------
308
309void CodeGenerator::InsertArg(const CXXDependentScopeMemberExpr* stmt)

Callers 3

InsertConstructorExprMethod · 0.85
InsertArgMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected