diff options
author | Hop311 <Hop3114@gmail.com> | 2024-01-03 16:02:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-03 16:02:40 +0100 |
commit | b06b25bd2910818029ebbf1cd3014ef20a64e25b (patch) | |
tree | 21e54285c4f3927ecd3b1b621587d75b875ac3d3 /src/openvic-simulation/dataloader/NodeTools.hpp | |
parent | 461ec160448373f8d9492b9c586ff53a35edef18 (diff) | |
parent | f0dd758b6c7f35ffb1f6b237805bcb8d39c20cc5 (diff) |
Merge pull request #118 from OpenVicProject/case-insensitive-registry
Added case insensitive ordered set and map and IdentifierRegistry
Diffstat (limited to 'src/openvic-simulation/dataloader/NodeTools.hpp')
-rw-r--r-- | src/openvic-simulation/dataloader/NodeTools.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/dataloader/NodeTools.hpp b/src/openvic-simulation/dataloader/NodeTools.hpp index f5f960f..8ad731b 100644 --- a/src/openvic-simulation/dataloader/NodeTools.hpp +++ b/src/openvic-simulation/dataloader/NodeTools.hpp @@ -19,8 +19,8 @@ namespace OpenVic { /* Template for map from strings to Ts, in which string_views can be * searched for without needing to be copied into a string */ - template<typename T> - using string_map_t = ordered_map<std::string, T>; + template<typename T, class Hash = container_hash<std::string>, class KeyEqual = std::equal_to<>> + using string_map_t = ordered_map<std::string, T, Hash, KeyEqual>; /* String set type supporting heterogeneous key lookup */ using string_set_t = ordered_set<std::string>; |