MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / ExpensiveCalculation

Function ExpensiveCalculation

12.16-asConstant1/main.cpp:9–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7}
8
9constexpr int ExpensiveCalculation(int base)
10{
11 return base + 1; // Well, ... expensive
12}
13
14int main()
15{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected