From 268a6948c0400905dfc335427395519689f067f5 Mon Sep 17 00:00:00 2001 From: hop311 Date: Mon, 22 Jan 2024 20:02:58 +0000 Subject: Added reserve_more, expect_dictionary_key[s|_map]_reserve_length[_and_default] --- src/openvic-simulation/history/ProvinceHistory.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/openvic-simulation/history/ProvinceHistory.hpp') diff --git a/src/openvic-simulation/history/ProvinceHistory.hpp b/src/openvic-simulation/history/ProvinceHistory.hpp index 0bda35d..7611907 100644 --- a/src/openvic-simulation/history/ProvinceHistory.hpp +++ b/src/openvic-simulation/history/ProvinceHistory.hpp @@ -1,13 +1,10 @@ #pragma once -#include -#include #include #include "openvic-simulation/country/Country.hpp" #include "openvic-simulation/economy/BuildingType.hpp" #include "openvic-simulation/economy/Good.hpp" -#include "openvic-simulation/history/Bookmark.hpp" #include "openvic-simulation/history/HistoryMap.hpp" #include "openvic-simulation/map/Province.hpp" #include "openvic-simulation/map/TerrainType.hpp" @@ -63,7 +60,7 @@ namespace OpenVic { struct ProvinceHistoryManager { private: - ordered_map PROPERTY(province_histories); + ordered_map province_histories; bool locked = false; ProvinceHistoryMap* _get_or_make_province_history(Province const& province); @@ -71,6 +68,7 @@ namespace OpenVic { public: ProvinceHistoryManager() = default; + void reserve_more_province_histories(size_t size); void lock_province_histories(Map const& map, bool detailed_errors); bool is_locked() const; -- cgit v1.2.3-56-ga3b1