Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/programming-with-cpp20
/ ~Car
Method
~Car
12.14-constexprAllocation2/main.cpp:9–9 ·
view source on GitHub ↗
#A Base class for all cars
Source
from the content-addressed store, hash-verified
7
8
struct Car { // #A Base class for all cars
9
virtual ~Car() = default;
10
constexpr virtual int speed() const = 0;
11
};
12
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected