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

Method speed

12.12-constexprAllocation1/main.cpp:13–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11// #B Various concrete cars with individual speed
12struct Mercedes : Car {
13 constexpr int speed() const override { return 5; }
14};
15struct Toyota : Car {
16 constexpr int speed() const override { return 6; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected