Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/programming-with-cpp20
/ move
Function
move
12.03-constexprPoint0/main.cpp:28–34 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
26
};
27
28
constexpr Point move(Point p, double x, double y)
29
{
30
p.SetX(p.GetX() + x);
31
p.SetY(p.GetY() + y);
32
33
return p;
34
}
35
36
int main()
37
{
Callers
13
custom_take_view
Method · 0.85
base
Method · 0.85
main
Function · 0.85
main
Function · 0.85
main
Function · 0.85
main
Function · 0.85
yield_value
Method · 0.85
custom_take_view
Method · 0.85
base
Method · 0.85
main
Function · 0.85
operator()
Method · 0.85
main
Function · 0.85
Calls
4
SetX
Method · 0.80
GetX
Method · 0.80
SetY
Method · 0.80
GetY
Method · 0.80
Tested by
no test coverage detected