diff options
author | Hop311 <Hop3114@gmail.com> | 2024-11-01 15:52:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-01 15:52:35 +0100 |
commit | 8defcd5daa1acd2c61aa1cd0a26478d472fed9b0 (patch) | |
tree | 9c7745a28a9c3cd96d25689cef4ccd8cfe630604 | |
parent | b602c10cf890c5973c1efbe8d958bf9b67499efe (diff) | |
parent | b921c9e278872b21ef3bf8a18f09061ee9bcbfb6 (diff) |
Merge pull request #223 from OpenVicProject/add-indexed-map-mapping-type
Add IndexedMap::mapping_type alias for easier interchangeability with ordered_maps
-rw-r--r-- | src/openvic-simulation/types/IndexedMap.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openvic-simulation/types/IndexedMap.hpp b/src/openvic-simulation/types/IndexedMap.hpp index 73ff313..4f6fc9c 100644 --- a/src/openvic-simulation/types/IndexedMap.hpp +++ b/src/openvic-simulation/types/IndexedMap.hpp @@ -19,6 +19,7 @@ namespace OpenVic { using keys_t = std::vector<key_t>; using key_type = key_t; // To match tsl::ordered_map's key_type + using mapped_type = value_t; // To match tsl::ordered_map's mapped_type using container_t::operator[]; using container_t::size; |