Replace various uses of std::set/map with btree containers.

This commit is contained in:
Jonathan G Rennison
2017-02-08 00:18:09 +00:00
parent 76de8f9b13
commit 9d5f34fea6
10 changed files with 35 additions and 30 deletions

View File

@@ -21,15 +21,15 @@
#include "table/strings.h"
#include <map>
#include <set>
#include "3rdparty/cpp-btree/btree_set.h"
#include "3rdparty/cpp-btree/btree_map.h"
#include "safeguards.h"
/** Set of tiles. */
typedef std::set<TileIndex> TileIndexSet;
typedef btree::btree_set<TileIndex> TileIndexSet;
/** Mapping of tiles to their height. */
typedef std::map<TileIndex, int> TileIndexToHeightMap;
typedef btree::btree_map<TileIndex, int> TileIndexToHeightMap;
/** State of the terraforming. */
struct TerraformerState {