Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
9
constexpr int ExpensiveCalculation(int base)
10
{
11
return base + 1; // Well, ... expensive
12
}
13
14
int main()
15
{
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected