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

Method Point

12.03-constexprPoint0/main.cpp:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9class Point {
10public:
11 constexpr Point(double x, double y) noexcept
12 : mX{x}
13 , mY{y}
14 {}
15
16 constexpr double GetX() const noexcept { return mX; }
17 constexpr double GetY() const noexcept { return mY; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected