Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/programming-with-cpp20
/ speed
Method
speed
12.12-constexprAllocation1/main.cpp:16–16 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
14
};
15
struct Toyota : Car {
16
constexpr int speed() const override { return 6; }
17
};
18
struct Tesla : Car {
19
constexpr int speed() const override { return 9; }
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected