MCPcopy 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
28constexpr 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
36int main()
37{

Callers 13

custom_take_viewMethod · 0.85
baseMethod · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
yield_valueMethod · 0.85
custom_take_viewMethod · 0.85
baseMethod · 0.85
mainFunction · 0.85
operator()Method · 0.85
mainFunction · 0.85

Calls 4

SetXMethod · 0.80
GetXMethod · 0.80
SetYMethod · 0.80
GetYMethod · 0.80

Tested by

no test coverage detected