Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/programming-with-cpp20
/ speed
Method
speed
12.14-constexprAllocation2/main.cpp:21–21 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
19
};
20
struct Tesla : Car {
21
constexpr int speed() const override { return 9; }
22
};
23
24
constexpr std::unique_ptr<Car> CreateCar(int i)
Callers
1
FastestCar
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected