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

Class Car

12.14-constexprAllocation2/main.cpp:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6# include <memory>
7
8struct Car { // #A Base class for all cars
9 virtual ~Car() = default;
10 constexpr virtual int speed() const = 0;
11};
12
13// #B Various concrete cars with individual speed
14struct Mercedes : Car {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected