Use btree set for town names list

This commit is contained in:
Jonathan G Rennison
2023-08-01 19:09:30 +01:00
parent 2313679ee7
commit 4202afc0bc

View File

@@ -16,10 +16,10 @@
#include "newgrf_townname.h" #include "newgrf_townname.h"
#include "town_type.h" #include "town_type.h"
#include "string_type.h" #include "string_type.h"
#include <set> #include "3rdparty/cpp-btree/btree_set.h"
#include <string> #include <string>
typedef std::set<std::string> TownNames; typedef btree::btree_set<std::string> TownNames;
static constexpr uint BUILTIN_TOWNNAME_GENERATOR_COUNT = SPECSTR_TOWNNAME_LAST - SPECSTR_TOWNNAME_START + 1; ///< Number of built-in town name generators. static constexpr uint BUILTIN_TOWNNAME_GENERATOR_COUNT = SPECSTR_TOWNNAME_LAST - SPECSTR_TOWNNAME_START + 1; ///< Number of built-in town name generators.