diff options
author | hop311 <hop3114@gmail.com> | 2024-01-03 15:30:23 +0100 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-01-03 15:43:35 +0100 |
commit | f0dd758b6c7f35ffb1f6b237805bcb8d39c20cc5 (patch) | |
tree | 21e54285c4f3927ecd3b1b621587d75b875ac3d3 /src/openvic-simulation/dataloader/NodeTools.hpp | |
parent | 461ec160448373f8d9492b9c586ff53a35edef18 (diff) |
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>; |