| 22 | }; |
| 23 | |
| 24 | constexpr std::unique_ptr<Car> CreateCar(int i) |
| 25 | { |
| 26 | switch(i) { |
| 27 | case 0: return std::make_unique<Mercedes>(); |
| 28 | case 1: return std::make_unique<Toyota>(); |
| 29 | case 2: return std::make_unique<Tesla>(); |
| 30 | } |
| 31 | |
| 32 | return nullptr; |
| 33 | } |
| 34 | |
| 35 | constexpr int FastestCar() |
| 36 | { |
no outgoing calls
no test coverage detected