MCPcopy Create free account
hub / github.com/BowenFu/matchit.cpp / Rectangle

Method Rectangle

sample/Closed-Class-Hierarchy.cpp:22–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20{
21 constexpr static Kind k = Kind::Rectangle;
22 Rectangle(int width, int height)
23 : Shape{Shape::Kind::Rectangle}, width(width), height(height) {}
24 int width, height;
25};
26

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected