- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
class PriceCache {
public:
FlightStorage(const std::size_t count) {
for (std::size_t i = 0; i < count; ++i) {
flights.emplace_back(FlightCache::get(i));
prices.emplace_back(&flights.back(), Price::getFor(flights.back()));
}
}
private:
std::vector<Flight> flights;
std::vector<const Flight *, double> prices;
};
Elvenfighter 28.02.2018 15:33 # 0
Elvenfighter 28.02.2018 18:42 # 0
roman-kashitsyn 28.02.2018 15:46 # +2
Починил, проверь
Steve_Brown 28.02.2018 17:02 # 0
roman-kashitsyn 28.02.2018 18:06 # 0
Elvenfighter 28.02.2018 18:34 # 0